3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = false; $bar = true; if ($foo) { echo "foo"; } elseif ($bar) { echo "bar"; } else { echo "wat"; }

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.5.10.0110.00816.66
8.5.00.0140.00719.94
8.4.160.0130.00922.02
8.4.150.0080.00516.76
8.4.140.0120.01117.24
8.4.130.0100.01018.38
8.4.120.0040.00424.32
8.4.110.0140.00618.91
8.4.100.0440.00817.65
8.4.90.0440.00917.63
8.4.80.0440.00617.83
8.4.70.0350.01217.43
8.4.60.0420.00817.29
8.4.50.0450.00917.34
8.4.40.0480.00817.33
8.4.30.0430.00817.33
8.4.20.0460.00717.51
8.4.10.0480.00817.53
8.3.290.0150.00820.59
8.3.280.0100.00918.24
8.3.270.0130.00616.43
8.3.260.0140.00816.63
8.3.250.0100.00918.88
8.3.240.0110.00916.90
8.3.230.0370.01316.16
8.3.220.0420.00716.12
8.3.210.0280.00316.73
8.3.200.0170.00516.49
8.3.190.0170.00516.39
8.3.180.0370.01216.71
8.3.170.0360.00716.48
8.3.160.0190.00516.39
8.3.150.0220.00316.57
8.3.140.0290.00416.27
8.3.130.0260.00416.27
8.3.120.0260.00716.21
8.3.110.0380.00516.13
8.3.100.0400.00416.51
8.3.90.0150.00816.35
8.3.80.0290.00516.32
8.3.70.0200.00416.18
8.3.60.0190.00416.37
8.3.50.0300.00716.25
8.3.40.0470.00917.19
8.3.30.0290.01217.15
8.3.20.0300.00817.36
8.3.10.0270.00717.45
8.3.00.0340.00717.29
8.2.300.0130.00720.16
8.2.290.0280.01316.66
8.2.280.0350.00516.25
8.2.270.0350.00816.57
8.2.260.0350.00716.36
8.2.250.0320.01016.24
8.2.240.0330.00616.27
8.2.230.0350.00716.21
8.2.220.0360.00716.04
8.2.210.0360.00916.26
8.2.200.0300.00816.17
8.2.190.0340.00816.65
8.2.180.0280.00916.57
8.2.170.0350.00917.57
8.2.160.0350.01017.49
8.2.150.0360.00917.73
8.2.140.0350.00917.55
8.2.130.0340.00117.25
8.2.120.0470.01217.55
8.2.110.0360.00917.34
8.2.100.0360.01017.57
8.2.90.0420.00617.66
8.2.80.0340.01017.45
8.2.70.0230.01017.45
8.2.60.0200.00417.50
8.2.50.0170.00317.37
8.2.40.0260.00417.48
8.2.30.0310.00817.26
8.2.20.0330.00717.39
8.2.10.0340.00817.38
8.2.00.0350.00617.36
8.1.340.0110.00921.94

preferences:
30.54 ms | 403 KiB | 5 Q