3v4l.org

run code in 300+ PHP versions simultaneously
<?php class int { } function foo(int $bar) { echo('int'); } $baz = 'int'; foo(new $baz);

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.07721.04
5.6.210.0100.03320.72
5.6.200.0200.06018.27
5.6.190.0200.06020.60
5.6.180.0100.03720.30
5.6.170.0400.07020.47
5.6.160.0030.07320.43
5.6.150.0030.04018.19
5.6.140.0130.07018.18
5.6.130.0100.06718.21
5.6.120.0030.08321.01
5.6.110.0070.04321.00
5.6.100.0100.08020.99
5.6.90.0070.07321.13
5.6.80.0030.06020.38
5.6.70.0100.07320.43
5.5.350.0030.08320.30
5.5.340.0100.04317.98
5.5.330.0030.05020.40
5.5.320.0030.09020.30
5.5.310.0370.07320.31
5.5.300.0100.06717.93
5.5.290.0070.04018.01
5.5.280.0070.07720.86
5.5.270.0070.08320.73
5.5.260.0030.04020.87
5.5.250.0100.07320.79
5.5.240.0030.04020.26
5.4.450.0030.06319.52
5.4.440.0030.04019.20
5.4.430.0000.04719.19
5.4.420.0030.05319.19
5.4.410.0070.05319.14
5.4.400.0030.07019.14
5.4.390.0030.08319.09
5.4.380.0070.05019.16
5.4.370.0030.07318.86
5.4.360.0070.05718.83
5.4.350.0230.04319.20
5.4.340.0100.04719.09
5.4.320.0000.06719.06
5.4.310.0300.05019.09
5.4.300.0070.06019.06
5.4.290.0000.04318.95
5.4.280.0000.07718.94
5.4.270.0100.05018.85
5.4.260.0000.07719.24
5.4.250.0000.05719.19
5.4.240.0000.07719.13
5.4.230.0000.07718.97
5.4.220.0070.05719.31
5.4.210.0030.03719.23
5.4.200.0030.05019.19
5.4.190.0000.08019.23
5.4.180.0030.08019.08
5.4.170.0100.05719.00
5.4.160.0030.07318.97
5.4.150.0030.04319.20
5.4.140.0030.03716.39
5.4.130.0070.04716.38
5.4.120.0030.05016.51
5.4.110.0000.06016.60
5.4.100.0030.04316.41
5.4.90.0000.06716.40
5.4.80.0000.07316.40
5.4.70.0070.06716.54
5.4.60.0030.07016.38
5.4.50.0030.07716.43
5.4.40.0000.08016.50
5.4.30.0100.05716.37
5.4.20.0030.05316.42
5.4.10.0000.07716.42
5.4.00.0000.06015.78
5.3.290.0030.07314.53
5.3.280.0070.04714.51
5.3.270.0030.07714.77
5.3.260.0000.05314.64
5.3.250.0100.04014.50
5.3.240.0070.04014.60
5.3.230.0030.04014.61
5.3.220.0000.04014.54
5.3.210.0000.07714.48
5.3.200.0030.08014.63
5.3.190.0030.04714.54
5.3.180.0030.04714.57
5.3.170.0000.07714.71
5.3.160.0030.07714.64
5.3.150.0000.07314.55
5.3.140.0130.06314.55
5.3.130.0030.08014.65
5.3.120.0030.07014.65
5.3.110.0000.05314.55
5.3.100.0030.07714.26
5.3.90.0070.06714.24
5.3.80.0070.06014.03
5.3.70.0130.04314.02
5.3.60.0000.05314.16
5.3.50.0000.04714.02
5.3.40.0000.07314.03
5.3.30.0130.05313.98
5.3.20.0000.08013.71
5.3.10.0070.05013.73
5.3.00.0030.07013.70
5.2.170.0030.06013.00
5.2.160.0030.06013.00
5.2.150.0000.04313.00
5.2.140.0000.06713.00
5.2.130.0070.05313.00
5.2.120.0070.05713.00
5.2.110.0000.04713.00
5.2.100.0000.06013.00
5.2.90.0070.04713.00
5.2.80.0000.05313.00
5.2.70.0070.02713.00
5.2.60.0000.05313.00
5.2.50.0030.05013.00
5.2.40.0030.04713.00
5.2.30.0070.04713.00
5.2.20.0030.03713.00
5.2.10.0070.05313.00
5.2.00.0000.06713.00
5.1.60.0070.05313.00
5.1.50.0000.05013.00
5.1.40.0000.05713.00
5.1.30.0000.04313.00
5.1.20.0000.03713.00
5.1.10.0030.03313.00
5.1.00.0070.03713.00
5.0.50.0030.03713.00
5.0.40.0030.03313.00
5.0.30.0000.05313.00
5.0.20.0030.02313.00
5.0.10.0030.04013.00
5.0.00.0030.06313.00
4.4.90.0000.01313.00
4.4.80.0030.02013.00
4.4.70.0030.03713.00
4.4.60.0000.03013.00
4.4.50.0000.03013.00
4.4.40.0030.05313.00
4.4.30.0000.02313.00
4.4.20.0000.02713.00
4.4.10.0000.03713.00
4.4.00.0000.05013.00
4.3.110.0070.03313.00
4.3.100.0030.02013.00
4.3.90.0000.03313.00
4.3.80.0000.03013.00
4.3.70.0000.02013.00
4.3.60.0000.03313.00
4.3.50.0000.03313.00
4.3.40.0030.05013.00
4.3.30.0030.03713.00
4.3.20.0030.02713.00
4.3.10.0000.02713.00
4.3.00.0000.02713.00

preferences:
135.08 ms | 1394 KiB | 7 Q