3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { function __constructor(){} } $a = array(); for ($i=0; $i<100000; $i++) $a[rand()%100] =& new Foo();

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
5.6.280.0000.11020.79
5.6.210.0000.11020.51
5.6.200.0030.07718.16
5.6.190.0170.08320.64
5.6.180.0070.11720.48
5.6.170.0300.09720.54
5.6.160.0170.10020.39
5.6.150.0100.07018.17
5.6.140.0130.11018.26
5.6.130.0100.05318.23
5.6.120.0070.05720.97
5.6.110.0130.05020.98
5.6.100.0130.10721.00
5.6.90.0100.08320.99
5.6.80.0170.09720.38
5.6.70.0300.11020.40
5.5.350.0030.08020.45
5.5.340.0030.11717.96
5.5.330.0030.06720.23
5.5.320.0070.11720.27
5.5.310.0370.10320.30
5.5.300.0030.11317.94
5.5.290.0130.05317.92
5.5.280.0170.06720.88
5.5.270.0070.09320.76
5.5.260.0070.06020.87
5.5.250.0070.11020.66
5.5.240.0130.08720.16
5.4.450.0370.05719.20
5.4.440.0470.09319.47
5.4.430.0800.10719.58
5.4.420.0970.09319.55
5.4.410.0830.08319.50
5.4.400.0830.08319.27
5.4.390.0730.08319.37
5.4.380.0100.08318.61
5.4.370.0530.07318.57
5.4.360.0270.09018.51
5.4.350.0330.08318.79
5.4.340.0370.08018.75
5.4.320.0060.05812.52
5.4.310.0120.06912.52
5.4.300.0060.07312.53
5.4.290.0050.07412.52
5.4.280.0100.05612.42
5.4.270.0060.05812.41
5.4.260.0060.06312.41
5.4.250.0090.05612.42
5.4.240.0040.05712.39
5.4.230.0070.06012.38
5.4.220.0050.05712.38
5.4.210.0060.05512.38
5.4.200.0060.06112.38
5.4.190.0080.05512.38
5.4.180.0070.06212.38
5.4.170.0090.06312.39
5.4.160.0060.05812.38
5.4.150.0060.05712.38
5.4.140.0010.06412.06
5.4.130.0060.05712.05
5.4.120.0050.05812.00
5.4.110.0060.05712.00
5.4.100.0080.06512.00
5.4.90.0060.05912.00
5.4.80.0030.06112.00
5.4.70.0080.06012.00
5.4.60.0010.06212.00
5.4.50.0060.06312.00
5.4.40.0060.05811.99
5.4.30.0050.06211.98
5.4.20.0070.05611.98
5.4.10.0080.05911.98
5.4.00.0050.06311.47
5.3.290.0080.07212.80
5.3.280.0080.06612.71
5.3.270.0070.07112.72
5.3.260.0040.09312.71
5.3.250.0090.06312.72
5.3.240.0080.06512.72
5.3.230.0040.07612.71
5.3.220.0070.08212.68
5.3.210.0060.07412.68
5.3.200.0020.07612.68
5.3.190.0060.06612.68
5.3.180.0030.07012.68
5.3.170.0110.08212.67
5.3.160.0050.07612.68
5.3.150.0070.07312.67
5.3.140.0050.06712.66
5.3.130.0040.07112.66
5.3.120.0040.07112.66
5.3.110.0060.06812.66
5.3.100.0090.07112.12
5.3.90.0050.07312.09
5.3.80.0040.07712.08
5.3.70.0040.06712.08
5.3.60.0060.06812.06
5.3.50.0080.07512.02
5.3.40.0060.07312.02
5.3.30.0100.06511.99
5.3.20.0040.06611.78
5.3.10.0090.06611.72
5.3.00.0090.06411.71
5.2.170.0020.0639.21
5.2.160.0050.0649.21
5.2.150.0040.0649.21
5.2.140.0040.0619.21
5.2.130.0040.0599.17
5.2.120.0050.0589.17
5.2.110.0040.0659.17
5.2.100.0070.0619.17
5.2.90.0060.0699.17
5.2.80.0060.0689.16
5.2.70.0030.0629.16
5.2.60.0040.0589.13
5.2.50.0050.0649.09
5.2.40.0040.0629.07
5.2.30.0040.0649.04
5.2.20.0020.0609.02
5.2.10.0040.0578.93
5.2.00.0050.0578.79
5.1.60.0020.0518.08
5.1.50.0060.0498.08
5.1.40.0040.0498.07
5.1.30.0040.0578.42
5.1.20.0040.0568.44
5.1.10.0020.0538.16
5.1.00.0000.0658.15
5.0.50.0060.0686.63
5.0.40.0050.0596.50
5.0.30.0020.0706.31
5.0.20.0000.0626.28
5.0.10.0040.0616.25
5.0.00.0030.0776.25
4.4.90.0030.0564.78
4.4.80.0040.0554.76
4.4.70.0040.0814.75
4.4.60.0030.0554.76
4.4.50.0030.0544.77
4.4.40.0030.0674.71
4.4.30.0020.0574.76
4.4.20.0050.0624.85
4.4.10.0030.0564.85
4.4.00.0000.0694.76
4.3.110.0040.0544.66
4.3.100.0040.0584.67
4.3.90.0040.0544.63
4.3.80.0060.0664.58
4.3.70.0020.0574.63
4.3.60.0030.0564.63
4.3.50.0020.0574.62
4.3.40.0010.0634.54
4.3.30.0030.0543.44
4.3.20.0010.1803.48
4.3.10.0050.1853.48
4.3.00.0030.13713.14

preferences:
147.79 ms | 1394 KiB | 7 Q