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<100000; $i++) $a[rand()%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.11020.93
5.6.260.0030.10020.70
5.6.250.0070.06020.70
5.6.240.0000.07020.64
5.6.230.0000.06320.63
5.6.220.0030.06020.63
5.6.210.0030.06020.54
5.6.200.0030.06321.10
5.6.190.0000.06021.10
5.6.180.0070.05721.09
5.6.170.0030.06020.95
5.6.160.0030.06020.89
5.6.150.0000.06721.04
5.6.140.0000.06320.93
5.6.130.0170.04721.07
5.6.120.0030.05320.89
5.6.110.0030.07721.08
5.6.100.0030.05720.99
5.6.90.0030.07321.22
5.6.80.0070.11020.28
5.6.70.0330.10320.47
5.6.60.0000.11020.58
5.6.50.0070.10320.55
5.6.40.0070.10720.51
5.6.30.0100.06720.59
5.6.20.0030.07320.57
5.6.10.0030.10720.40
5.6.00.0030.11020.23
5.5.380.0000.06720.27
5.5.370.0000.06320.49
5.5.360.0030.06020.48
5.5.350.0000.06720.41
5.5.340.0030.06020.93
5.5.330.0000.06320.97
5.5.320.0030.06720.79
5.5.310.0000.06320.75
5.5.300.0100.07020.99
5.5.290.0000.06320.84
5.5.280.0070.05720.73
5.5.270.0000.06320.81
5.5.260.0000.06720.83
5.5.250.0030.11020.66
5.5.240.0030.11020.14
5.5.230.0030.09020.33
5.5.220.0070.09720.29
5.5.210.0030.10720.30
5.5.200.0000.10720.11
5.5.190.0030.10720.34
5.5.180.0000.11720.10
5.5.160.0000.07720.25
5.5.150.0030.09720.11
5.5.140.0030.06720.18
5.5.130.0130.09320.19
5.5.120.0030.07020.11
5.5.110.0100.10720.25
5.5.100.0070.10320.15
5.5.90.0070.10020.09
5.5.80.0000.10720.20
5.5.70.0070.10719.91
5.5.60.0030.10020.13
5.5.50.0070.07319.92
5.5.40.0030.10720.01
5.5.30.0070.10719.92
5.5.20.0130.09320.19
5.5.10.0000.10319.98
5.5.00.0100.09320.10
5.4.450.0000.06719.51
5.4.440.0030.07019.52
5.4.430.0070.06319.33
5.4.420.0000.07319.46
5.4.410.0070.10019.34
5.4.400.0000.10319.00
5.4.390.0070.09719.18
5.4.380.0070.11019.02
5.4.370.0000.09319.16
5.4.360.0030.10019.01
5.4.350.0000.10319.01
5.4.340.0070.09318.99
5.4.320.0100.11019.16
5.4.310.0070.10719.09
5.4.300.0030.10719.20
5.4.290.0000.10319.01
5.4.280.0070.10719.18
5.4.270.0030.09719.00
5.4.260.0070.06719.03
5.4.250.0000.11719.33
5.4.240.0030.09318.98
5.4.230.0100.09319.00
5.4.220.0030.10719.19
5.4.210.0000.07319.01
5.4.200.0070.10319.00
5.4.190.0070.09719.00
5.4.180.0070.11019.23
5.4.170.0030.09719.00
5.4.160.0030.10719.22
5.4.150.0070.10719.29
5.4.140.0100.09316.43
5.4.130.0000.11016.24
5.4.120.0030.11316.56
5.4.110.0070.08016.38
5.4.100.0000.10016.57
5.4.90.0000.10316.55
5.4.80.0000.11016.55
5.4.70.0030.09316.56
5.4.60.0030.10316.44
5.4.50.0030.09316.26
5.4.40.0000.11316.53
5.4.30.0070.09316.48
5.4.20.0000.10316.46
5.4.10.0030.10716.41
5.4.00.0070.11015.69
5.3.290.0070.08314.86
5.3.280.0070.10714.64
5.3.270.0070.08314.68
5.3.260.0030.11014.79
5.3.250.0070.09714.78
5.3.240.0100.11314.73
5.3.230.0030.08714.63
5.3.220.0000.08014.66
5.3.210.0030.07014.59
5.3.200.0000.10014.70
5.3.190.0070.12314.63
5.3.180.0030.12014.62
5.3.170.0000.12714.58
5.3.160.0030.10014.60
5.3.150.0070.11714.59
5.3.140.0030.12014.61
5.3.130.0030.12014.63
5.3.120.0070.10014.82
5.3.110.0070.08014.70
5.3.100.0030.06714.04
5.3.90.0100.11014.09
5.3.80.0070.07014.07
5.3.70.0000.10314.19
5.3.60.0000.11714.05
5.3.50.0070.07714.07
5.3.40.0100.11713.98
5.3.30.0000.10013.91
5.3.20.0070.08013.74
5.3.10.0030.10013.69
5.3.00.0030.12313.66
5.2.170.0000.11711.40
5.2.160.0070.09311.40
5.2.150.0030.11711.40
5.2.140.0030.08011.40
5.2.130.0000.11311.40
5.2.120.0000.11011.40
5.2.110.0030.11011.40
5.2.100.0000.10711.40
5.2.90.0100.10311.40
5.2.80.0070.09711.40
5.2.70.0000.08011.40
5.2.60.0030.11711.40
5.2.50.0030.09711.40
5.2.40.0030.10711.40
5.2.30.0030.11311.40
5.2.20.0030.10311.40
5.2.10.0100.07311.40
5.2.00.0070.10711.40
5.1.60.0000.10011.40
5.1.50.0030.06711.40
5.1.40.0100.06011.40
5.1.30.0030.07711.40
5.1.20.0030.08311.40
5.1.10.0000.06311.40
5.1.00.0000.09011.40
5.0.50.0000.06711.40
5.0.40.0030.09311.40
5.0.30.0030.12711.40
5.0.20.0000.09311.40
5.0.10.0030.10311.40
5.0.00.0000.07711.40
4.4.90.0000.01311.40
4.4.80.0000.03311.40
4.4.70.0030.03311.40
4.4.60.0030.03311.40
4.4.50.0030.03311.40
4.4.40.0030.02711.40
4.4.30.0030.03011.40
4.4.20.0000.03711.40
4.4.10.0030.03311.40
4.4.00.0030.05311.40
4.3.110.0000.03711.40
4.3.100.0070.02711.40
4.3.90.0000.03311.40
4.3.80.0000.05011.40
4.3.70.0000.03311.40
4.3.60.0070.02711.40
4.3.50.0000.03011.40
4.3.40.0000.04011.40
4.3.30.0030.03711.40
4.3.20.0000.03711.40
4.3.10.0000.02711.40
4.3.00.0000.02711.40

preferences:
148.01 ms | 1398 KiB | 7 Q