3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = false; $bar = true; if ($foo) { echo "foo"; } else if ($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.20.0090.00919.99
8.5.10.0100.00816.59
8.5.00.0120.00919.71
8.4.170.0090.01123.91
8.4.160.0110.01322.12
8.4.150.0020.00114.05
8.4.140.0110.01117.82
8.4.130.0110.00917.68
8.4.120.0140.00523.90
8.4.110.0100.00918.80
8.4.100.0560.00417.45
8.4.90.0380.01417.53
8.4.80.0390.01017.67
8.4.70.0390.00917.41
8.4.60.0460.00917.27
8.4.50.0450.01017.53
8.4.40.0430.01217.32
8.4.30.0430.00517.46
8.4.20.0420.01217.38
8.4.10.0400.01217.45
8.3.300.0080.01220.81
8.3.290.0140.00820.66
8.3.280.0110.00918.39
8.3.270.0120.00916.52
8.3.260.0130.00716.24
8.3.250.0090.01118.93
8.3.240.0140.00416.77
8.3.230.0460.00716.18
8.3.220.0330.00816.33
8.3.210.0400.00816.06
8.3.200.0380.00716.18
8.3.190.0370.01016.22
8.3.180.0310.01316.04
8.3.170.0410.01016.14
8.3.160.0520.00616.26
8.3.150.0450.00816.30
8.3.140.0370.00616.38
8.3.130.0230.00516.46
8.3.120.0360.00916.39
8.3.110.0390.00716.37
8.3.100.0440.00716.40
8.3.90.0390.01116.25
8.3.80.0310.00516.29
8.3.70.0410.00816.18
8.3.60.0400.01116.25
8.3.50.0430.01016.55
8.3.40.0480.00717.55
8.3.30.0190.00617.38
8.3.20.0260.00917.16
8.3.10.0360.00517.36
8.3.00.0150.00717.34
8.2.300.0110.00920.45
8.2.290.0330.00816.56
8.2.280.0330.00816.31
8.2.270.0320.01116.63
8.2.260.0370.00616.18
8.2.250.0270.00416.34
8.2.240.0320.00916.29
8.2.230.0340.00916.19
8.2.220.0370.00716.51
8.2.210.0310.01116.34
8.2.200.0360.00616.58
8.2.190.0330.01116.68
8.2.180.0300.01216.09
8.2.170.0350.00917.63
8.2.160.0300.00617.64
8.2.150.0340.00417.43
8.2.140.0360.00917.57
8.2.130.0350.00617.20
8.2.120.0360.00917.41
8.2.110.0310.00717.41
8.2.100.0190.00117.56
8.2.90.0230.00417.69
8.2.80.0330.00917.26
8.2.70.0390.00717.28
8.2.60.0350.01017.65
8.2.50.0370.00717.20
8.2.40.0350.00817.75
8.2.30.0380.00817.69
8.2.20.0190.00617.47
8.2.10.0200.00917.18
8.2.00.0330.00817.52
8.1.340.0150.00521.73

preferences:
45.07 ms | 403 KiB | 5 Q