3v4l.org

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

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.35721.03
5.6.210.0130.26720.77
5.6.200.0130.26718.18
5.6.190.0000.25320.61
5.6.180.0430.21320.55
5.6.170.0200.21020.53
5.6.160.0000.22320.51
5.6.150.0170.26018.25
5.6.140.0030.27718.18
5.6.130.0100.20018.28
5.6.120.0070.26721.13
5.6.110.0130.26321.14
5.6.100.0070.28020.96
5.6.90.0070.24721.12
5.6.80.0070.25020.49
5.5.350.3970.22020.41
5.5.340.0030.28317.99
5.5.330.0030.39720.42
5.5.320.0370.27020.27
5.5.310.0330.22720.34
5.5.300.0070.27317.92
5.5.290.0000.21317.95
5.5.280.0100.21720.67
5.5.270.0070.28320.92
5.5.260.0070.27020.86
5.5.250.0030.24720.61
5.5.240.0130.27320.16
5.4.450.0400.32319.34
5.4.440.0200.34019.46
5.4.430.0100.32719.30
5.4.420.0270.39019.56
5.4.410.0200.32719.04
5.4.400.0170.31019.14
5.4.390.0370.34019.26
5.4.380.0100.30318.75
5.4.370.0330.30318.71
5.4.360.0270.31018.48
5.4.350.0530.29318.54
5.4.340.0370.32718.48
5.4.320.0100.21312.52
5.4.310.0050.22512.51
5.4.300.0060.23112.52
5.4.290.0090.24712.52
5.4.280.0080.22912.41
5.4.270.0070.22712.41
5.4.260.0050.22612.41
5.4.250.0110.21812.41
5.4.240.0080.23312.39
5.4.230.0030.22812.38
5.4.220.0050.22212.38
5.4.210.0040.23012.38
5.4.200.0060.22212.38
5.4.190.0110.22312.37
5.4.180.0070.22512.38
5.4.170.0080.22312.38
5.4.160.0090.23112.38
5.4.150.0090.23812.37
5.4.140.0030.22512.06
5.4.130.0090.22912.04
5.4.120.0080.23212.00
5.4.110.0040.23112.00
5.4.100.0080.24112.00
5.4.90.0060.23512.00
5.4.80.0080.23712.00
5.4.70.0060.24912.00
5.4.60.0080.24712.00
5.4.50.0070.22411.99
5.4.40.0030.23311.98
5.4.30.0070.22511.98
5.4.20.0070.22511.98
5.4.10.0040.22711.98
5.4.00.0050.26211.47
5.3.290.0100.31012.80
5.3.280.0080.30712.71
5.3.270.0060.36012.72
5.3.260.0090.31312.72
5.3.250.0060.31512.72
5.3.240.0050.31512.71
5.3.230.0040.39512.71
5.3.220.0080.32912.68
5.3.210.0040.35012.68
5.3.200.0030.35912.68
5.3.190.0100.31512.68
5.3.180.0070.34012.68
5.3.170.0050.33712.67
5.3.160.0070.32612.68
5.3.150.0060.40312.67
5.3.140.0050.32612.66
5.3.130.0080.32012.66
5.3.120.0080.33412.66
5.3.110.0060.33412.66
5.3.100.0040.35312.13
5.3.90.0090.32612.11
5.3.80.0030.32312.09
5.3.70.0100.31312.09
5.3.60.0090.33912.07
5.3.50.0030.39312.03
5.3.40.0050.31812.03
5.3.30.0100.34811.99
5.3.20.0060.31811.77
5.3.10.0050.32411.73
5.3.00.0070.33211.71
5.2.170.0050.3329.22
5.2.160.0070.3209.22
5.2.150.0080.3189.22
5.2.140.0050.3549.22
5.2.130.0030.3169.18
5.2.120.0090.3459.18
5.2.110.0030.3179.18
5.2.100.0120.3829.18
5.2.90.0020.3219.18
5.2.80.0100.3579.17
5.2.70.0050.3199.17
5.2.60.0060.2999.13
5.2.50.0090.3029.10
5.2.40.0070.3989.07
5.2.30.0040.3109.04
5.2.20.0050.3159.04
5.2.10.0050.2908.94
5.2.00.0050.2978.80
5.1.60.0030.2638.09
5.1.50.0060.2718.09
5.1.40.0050.2768.07
5.1.30.0070.3048.43
5.1.20.0080.2618.45
5.1.10.0060.2658.18
5.1.00.0040.2888.17
5.0.50.0070.4296.64
5.0.40.0070.4126.50
5.0.30.0000.4286.32
5.0.20.0040.4356.29
5.0.10.0030.4306.27
5.0.00.0060.4486.27
4.4.90.0020.0164.78
4.4.80.0010.0174.76
4.4.70.0020.0164.75
4.4.60.0030.0154.75
4.4.50.0010.0174.77
4.4.40.0020.0264.71
4.4.30.0020.0164.76
4.4.20.0030.0154.85
4.4.10.0030.0154.84
4.4.00.0030.0244.76
4.3.110.0010.0174.67
4.3.100.0010.0164.67
4.3.90.0000.0174.64
4.3.80.0020.0254.59
4.3.70.0010.0164.63
4.3.60.0020.0194.63
4.3.50.0030.0154.63
4.3.40.0040.0224.54
4.3.30.0020.0163.28
4.3.20.0010.0173.26
4.3.10.0000.0173.22
4.3.00.0000.0235.71

preferences:
137.11 ms | 1398 KiB | 7 Q