3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public static $bar; } $foo = new Foo; $arr = array("", " ", FALSE, TRUE, array(), NULL, "0", 0, 0.0, new stdClass, $foo, $foo->bar, "\0"); echo Foo::bar; // foreach($arr as $val){ var_dump($val); }

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)
8.3.70.0080.00818.56
8.3.60.0070.01416.50
8.3.50.0080.01121.92
8.3.40.0070.00718.88
8.3.30.0090.00618.84
8.3.20.0080.00020.39
8.3.10.0030.00523.52
8.3.00.0090.00019.35
8.2.190.0130.00316.63
8.2.180.0070.00716.75
8.2.170.0090.00622.96
8.2.160.0140.00021.90
8.2.150.0000.00724.18
8.2.140.0050.00324.66
8.2.130.0000.00726.16
8.2.120.0030.00617.75
8.2.110.0000.01322.25
8.2.100.0090.00317.88
8.2.90.0090.00019.21
8.2.80.0050.00317.97
8.2.70.0050.00317.50
8.2.60.0050.00318.04
8.2.50.0040.00418.07
8.2.40.0040.00419.39
8.2.30.0040.00420.64
8.2.20.0000.00817.80
8.2.10.0040.00418.09
8.2.00.0000.00918.07
8.1.280.0110.00425.92
8.1.270.0030.00723.97
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0030.00622.61
8.1.230.0060.00617.76
8.1.220.0050.00317.74
8.1.210.0060.00318.77
8.1.200.0090.00317.22
8.1.190.0000.00817.23
8.1.180.0050.00318.10
8.1.170.0040.00418.99
8.1.160.0050.00222.07
8.1.150.0050.00318.96
8.1.140.0050.00319.47
8.1.130.0040.00417.75
8.1.120.0030.00417.43
8.1.110.0000.00717.33
8.1.100.0040.00417.40
8.1.90.0000.00717.45
8.1.80.0070.00017.34
8.1.70.0070.00017.44
8.1.60.0040.00417.57
8.1.50.0030.00617.53
8.1.40.0000.00817.53
8.1.30.0030.00517.54
8.1.20.0020.00517.52
8.1.10.0080.00017.46
8.1.00.0030.00617.50
8.0.300.0050.00318.77
8.0.290.0000.00716.63
8.0.280.0030.00318.43
8.0.270.0000.00717.25
8.0.260.0030.00317.26
8.0.250.0040.00416.95
8.0.240.0000.00717.03
8.0.230.0070.00016.96
8.0.220.0060.00316.93
8.0.210.0000.00716.86
8.0.200.0060.00016.92
8.0.190.0000.00816.95
8.0.180.0070.00316.98
8.0.170.0040.00416.86
8.0.160.0050.00316.94
8.0.150.0030.00316.75
8.0.140.0030.00316.81
8.0.130.0000.00613.37
8.0.120.0040.00416.95
8.0.110.0000.00716.96
8.0.100.0040.00416.98
8.0.90.0000.00716.87
8.0.80.0000.01617.01
8.0.70.0000.00716.99
8.0.60.0000.00716.74
8.0.50.0050.00216.96
8.0.30.0120.00717.21
8.0.20.0110.00817.40
8.0.10.0000.00816.95
8.0.00.0130.00516.78
7.4.330.0040.00315.08
7.4.320.0060.00016.51
7.4.300.0000.00616.54
7.4.290.0030.00516.49
7.4.280.0000.00716.43
7.4.270.0040.00416.46
7.4.260.0030.00616.57
7.4.250.0000.00716.36
7.4.240.0040.00416.51
7.4.230.0070.00016.62
7.4.220.0070.01416.61
7.4.210.0060.01116.49
7.4.200.0000.00716.44
7.4.160.0090.00616.57
7.4.150.0070.01417.40
7.4.140.0090.01217.86
7.4.130.0100.00716.60
7.4.120.0080.00816.47
7.4.110.0120.00916.69
7.4.100.0120.00816.57
7.4.90.0070.01016.54
7.4.80.0130.01319.39
7.4.70.0130.00316.43
7.4.60.0090.00716.40
7.4.50.0000.00616.48
7.4.40.0060.01116.44
7.4.30.0030.01316.45
7.4.00.0070.00714.67
7.3.330.0050.00013.22
7.3.320.0000.00613.36
7.3.310.0000.00716.39
7.3.300.0000.00716.19
7.3.290.0060.00016.32
7.3.280.0050.01316.34
7.3.270.0110.00817.40
7.3.260.0100.00716.52
7.3.250.0070.01016.45
7.3.240.0130.00516.56
7.3.230.0060.01016.56
7.3.210.0030.01316.47
7.3.200.0090.01316.53
7.3.190.0080.00816.39
7.3.180.0000.01616.45
7.3.170.0130.00316.49
7.3.160.0030.01316.46
7.2.330.0190.00416.75
7.2.320.0100.00716.54
7.2.310.0150.00616.81
7.2.300.0090.00916.61
7.2.290.0120.00616.48
7.2.60.0030.01316.62
7.2.00.0040.00819.49
7.1.200.0060.00915.91
7.1.100.0060.00618.06
7.1.70.0000.01016.86
7.1.60.0090.01519.43
7.1.50.0030.00816.90
7.1.00.0030.07722.35
7.0.200.0230.00314.93
7.0.60.0170.03319.94
7.0.50.0030.07717.91
7.0.40.0100.08320.21
7.0.30.0200.05020.08
7.0.20.0270.05020.23
7.0.10.0030.04320.12
7.0.00.0000.04720.05
5.6.280.0030.07320.90
5.6.210.0200.07020.72
5.6.200.0100.03318.21
5.6.190.0000.05020.49
5.6.180.4000.04720.67
5.6.170.0330.03720.54
5.6.160.0070.05720.50
5.6.150.0030.05718.19
5.6.140.0130.06018.18
5.6.130.0000.04718.18
5.6.120.0130.07020.98
5.6.110.0070.09021.00
5.6.100.0130.05021.04
5.6.90.0100.07720.95
5.6.80.0100.07020.50
5.5.350.0030.07720.47
5.5.340.0030.05718.02
5.5.330.0030.09020.35
5.5.320.0270.05320.35
5.5.310.0200.03720.24
5.5.300.0070.03717.98
5.5.290.0070.08717.95
5.5.280.0130.07020.77
5.5.270.0030.04320.88
5.5.260.0030.06020.64
5.5.250.0070.06720.53
5.5.240.0000.05020.26
5.4.450.0070.06019.42
5.4.440.0030.06719.48
5.4.430.0030.05019.30
5.4.420.0030.08319.32
5.4.410.0070.07319.17
5.4.400.0030.08019.08
5.4.390.0030.05719.00
5.4.380.0030.05019.22
5.4.370.0030.04718.87
5.4.360.0000.04319.15
5.4.350.0070.05319.24
5.4.340.0030.08019.09
5.4.320.0000.06718.87
5.4.310.0030.06019.01
5.4.300.0070.05018.94
5.4.290.0070.03719.16
5.4.280.0070.06019.31
5.4.270.0030.06319.21
5.4.260.0070.05019.24
5.4.250.0070.04018.85
5.4.240.0070.07019.21
5.4.230.0130.04718.88
5.4.220.0000.07318.95
5.4.210.0030.04719.08
5.4.200.0070.07318.84
5.4.190.0030.04319.12
5.4.180.0030.07718.84
5.4.170.0130.04019.15
5.4.160.0030.07019.22
5.4.150.0100.06318.96
5.4.140.0030.06716.36
5.4.130.0030.07316.35
5.4.120.0030.08016.67
5.4.110.0000.06716.54
5.4.100.0030.07716.26
5.4.90.0070.06716.45

preferences:
54.08 ms | 401 KiB | 5 Q