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 ^ 1234567)%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.0030.31721.15
5.6.210.0170.25020.50
5.6.200.0030.26718.19
5.6.190.0130.21720.49
5.6.180.0030.23020.46
5.6.170.0230.24320.72
5.6.160.0130.21720.54
5.6.150.0100.21718.15
5.6.140.0130.23318.23
5.6.130.0030.24318.18
5.6.120.0030.21021.00
5.6.110.0000.21720.89
5.6.100.0070.27721.04
5.6.90.0070.26321.10
5.6.80.0070.26020.51
5.6.70.0430.26020.28
5.5.350.0000.32320.44
5.5.340.0130.27717.95
5.5.330.0030.29020.40
5.5.320.0030.22320.31
5.5.310.0270.28720.51
5.5.300.0030.24717.92
5.5.290.0030.27717.98
5.5.280.0030.25320.97
5.5.270.0030.24020.86
5.5.260.0030.22320.84
5.5.250.0100.24720.78
5.5.240.0070.26320.22
5.4.450.1000.29719.39
5.4.440.0800.40319.63
5.4.430.0900.32319.16
5.4.420.0770.43319.61
5.4.410.0730.32019.35
5.4.400.0400.31018.98
5.4.390.0570.32718.80
5.4.380.0170.30718.55
5.4.370.0300.32018.75
5.4.360.0530.31318.78
5.4.350.0300.32718.72
5.4.340.0270.43018.52
5.4.320.0060.24512.53
5.4.310.0060.22712.52
5.4.300.0060.22912.52
5.4.290.0160.25812.52
5.4.280.0090.25112.41
5.4.270.0050.23712.41
5.4.260.0060.25312.41
5.4.250.0080.25312.42
5.4.240.0080.22112.39
5.4.230.0060.25912.38
5.4.220.0030.23912.38
5.4.210.0080.23112.38
5.4.200.0060.23112.38
5.4.190.0050.23412.38
5.4.180.0040.23612.38
5.4.170.0070.22712.39
5.4.160.0040.23512.38
5.4.150.0040.26312.38
5.4.140.0060.25112.06
5.4.130.0050.23612.05
5.4.120.0070.24312.01
5.4.110.0040.24512.00
5.4.100.0070.24312.00
5.4.90.0060.29712.00
5.4.80.0110.24512.00
5.4.70.0090.24412.00
5.4.60.0050.27912.00
5.4.50.0060.24311.99
5.4.40.0040.24011.98
5.4.30.0050.23611.98
5.4.20.0070.24611.98
5.4.10.0070.24111.98
5.4.00.0050.27011.47
5.3.290.0080.33212.80
5.3.280.0070.32712.71
5.3.270.0050.39612.73
5.3.260.0060.33812.72
5.3.250.0060.40912.72
5.3.240.0060.33312.72
5.3.230.0080.33812.71
5.3.220.0070.35112.68
5.3.210.0110.43212.68
5.3.200.0030.37512.68
5.3.190.0080.34012.68
5.3.180.0050.35512.67
5.3.170.0110.33312.67
5.3.160.0050.33012.67
5.3.150.0010.37612.67
5.3.140.0100.33212.66
5.3.130.0060.33512.66
5.3.120.0060.36112.66
5.3.110.0070.33512.66
5.3.100.0060.33312.12
5.3.90.0050.36012.11
5.3.80.0080.31512.09
5.3.70.0050.32512.09
5.3.60.0060.35612.07
5.3.50.0050.37912.03
5.3.40.0090.34612.02
5.3.30.0050.35311.99
5.3.20.0060.31711.77
5.3.10.0040.34011.73
5.3.00.0100.33311.71
5.2.170.0050.3379.22
5.2.160.0040.3889.22
5.2.150.0060.3299.21
5.2.140.0090.3559.22
5.2.130.0080.3309.18
5.2.120.0080.3319.18
5.2.110.0050.4229.18
5.2.100.0050.3839.18
5.2.90.0070.3359.17
5.2.80.0060.3459.17
5.2.70.0040.3229.17
5.2.60.0030.3049.13
5.2.50.0040.3069.10
5.2.40.0050.3789.07
5.2.30.0040.3059.04
5.2.20.0030.3179.04
5.2.10.0040.2918.94
5.2.00.0020.3068.80
5.1.60.0020.2728.09
5.1.50.0070.3028.10
5.1.40.0070.2788.07
5.1.30.0050.3148.43
5.1.20.0050.2788.45
5.1.10.0060.2868.18
5.1.00.0010.3298.16
5.0.50.0050.4576.65
5.0.40.0080.5686.50
5.0.30.0050.4786.32
5.0.20.0040.4236.29
5.0.10.0040.4546.27
5.0.00.0020.4556.27
4.4.90.0040.0144.78
4.4.80.0030.0144.75
4.4.70.0010.0174.76
4.4.60.0020.0164.76
4.4.50.0040.0164.77
4.4.40.0040.0274.71
4.4.30.0050.0134.76
4.4.20.0030.0154.84
4.4.10.0030.0154.85
4.4.00.0000.0274.76
4.3.110.0020.0164.67
4.3.100.0020.0154.66
4.3.90.0010.0164.63
4.3.80.0000.0264.58
4.3.70.0010.0184.63
4.3.60.0020.0154.63
4.3.50.0020.0164.63
4.3.40.0040.0224.54
4.3.30.0010.0173.29
4.3.20.0020.0163.26
4.3.10.0010.0173.22
4.3.00.0030.01313.14

preferences:
141.48 ms | 1386 KiB | 7 Q