3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo($b) { return "Hi $b"; } $bar = 'bario'; $myfoo = foo; // my 'version' echo "<br>2 {$myfoo($bar)}";

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.4.120.0060.00223.77
8.4.110.0110.00918.54
8.4.100.0120.00917.96
8.4.90.0080.01117.71
8.4.80.0120.00917.98
8.4.70.0140.00817.95
8.4.60.0150.00620.48
8.4.50.0110.00919.73
8.4.40.0130.00617.80
8.4.30.0040.00419.09
8.4.20.0110.00817.81
8.4.10.0060.00319.38
8.3.250.0110.00819.11
8.3.240.0120.00716.77
8.3.230.0130.01016.93
8.3.220.0090.00517.17
8.3.210.0090.00916.82
8.3.200.0060.00317.07
8.3.190.0110.00818.96
8.3.180.0160.00416.84
8.3.170.0110.00720.83
8.3.160.0140.00316.89
8.3.150.0080.00317.11
8.3.140.0120.00616.86
8.3.130.0040.00418.72
8.3.120.0040.00818.66
8.3.110.0090.00020.94
8.3.100.0060.00316.82
8.3.90.0140.00416.62
8.3.80.0060.00317.97
8.3.70.0030.01216.50
8.3.60.0180.00018.36
8.3.50.0060.01216.61
8.3.40.0070.00723.64
8.3.30.0150.00620.17
8.3.20.0080.00024.18
8.3.10.0080.01123.61
8.3.00.0110.00820.64
8.2.290.0100.00916.80
8.2.280.0030.00520.30
8.2.270.0150.00317.21
8.2.260.0040.00418.71
8.2.250.0080.00016.68
8.2.240.0080.00018.75
8.2.230.0060.00322.58
8.2.220.0040.00424.06
8.2.210.0000.00826.77
8.2.200.0070.00418.88
8.2.190.0120.00316.63
8.2.180.0140.00318.29
8.2.170.0140.00718.95
8.2.160.0140.00022.96
8.2.150.0050.00325.66
8.2.140.0080.01222.21
8.2.130.0080.01021.25
8.2.120.0080.01019.85
8.2.110.0030.01319.88
8.2.100.0110.00819.89
8.2.90.0100.01120.57
8.2.80.0090.00519.92
8.2.70.0080.00720.59
8.2.60.0080.00420.50
8.2.50.0090.00519.54
8.2.40.0060.00619.85
8.2.30.0100.00219.60
8.2.20.0050.00719.71
8.2.10.0050.00719.79
8.2.00.0080.00419.75
8.1.330.0110.00816.03
8.1.320.0080.01118.23
8.1.310.0090.00916.41
8.1.300.0000.00817.84
8.1.290.0090.00030.84
8.1.280.0120.00625.92
8.1.270.0030.00922.99
8.1.260.0070.00622.94
8.1.250.0020.00922.94
8.1.240.0050.00319.47
8.1.230.0070.00119.40
8.1.220.0070.00119.80
8.1.210.0010.00719.48
8.1.200.0040.00419.54
8.1.190.0040.00419.62
8.1.180.0060.00319.31
8.1.170.0030.00519.42
8.1.160.0010.00719.51
8.1.150.0050.00319.32
8.1.140.0060.00319.48
8.1.130.0030.00619.61
8.1.120.0090.00019.39
8.1.110.0060.00319.48
8.1.100.0060.00319.29
8.1.90.0070.00119.36
8.1.80.0040.00419.40
8.1.70.0040.00420.29
8.1.60.0090.00020.37
8.1.50.0030.00620.31
8.1.40.0080.00120.46
8.1.30.0030.00620.53
8.1.20.0040.00620.43
8.1.10.0020.00720.36
8.1.00.0060.00220.16

preferences:
57.56 ms | 403 KiB | 5 Q