3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = "bar"; ?> <?php switch ($foo):?> <?php case "bar":?> BAR <?php break; case "baz": ?> BAZ <?php endswitch; ?>

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.0050.00420.39
8.4.110.0120.00522.38
8.4.100.0040.00417.72
8.4.90.0150.00620.54
8.4.80.0060.00218.69
8.4.70.0050.00418.61
8.4.60.0130.00820.41
8.4.50.0080.01018.40
8.4.40.0040.01118.93
8.4.30.0090.01018.61
8.4.20.0100.01021.07
8.4.10.0070.01519.39
8.3.250.0050.00318.92
8.3.240.0150.00417.29
8.3.230.0110.00916.56
8.3.220.0110.00719.10
8.3.210.0070.01116.59
8.3.200.0040.00516.72
8.3.190.0080.01016.96
8.3.180.0120.00518.84
8.3.170.0150.00416.94
8.3.160.0190.00016.85
8.3.150.0110.00716.89
8.3.140.0030.00616.58
8.3.130.0140.00416.41
8.3.120.0140.00316.29
8.3.110.0180.01116.21
8.3.100.0190.00016.05
8.3.90.0210.00016.23
8.3.80.0210.00016.09
8.3.70.0170.00516.39
8.3.60.0170.00316.66
8.3.50.0150.00515.96
8.3.40.0190.00017.05
8.3.30.0170.00017.00
8.3.20.0130.00316.98
8.3.10.0140.00317.09
8.3.00.0000.01117.17
8.2.290.0140.00516.95
8.2.280.0110.01118.31
8.2.270.0110.00717.07
8.2.260.0120.00716.39
8.2.250.0140.00316.59
8.2.240.0110.00716.12
8.2.230.0120.00616.71
8.2.220.0140.00316.14
8.2.210.0130.00416.32
8.2.200.0170.00016.41
8.2.190.0140.00516.23
8.2.180.0110.00615.94
8.2.170.0200.00017.27
8.2.160.0150.00417.54
8.2.150.0200.00017.45
8.2.140.0140.00417.17
8.2.130.0140.00517.17
8.2.120.0190.00017.30
8.2.110.0080.00817.45
8.2.100.0150.00417.34
8.2.90.0090.00917.09
8.2.80.0200.00017.36
8.2.70.0170.00516.87
8.2.60.0170.00317.25
8.2.50.0100.00717.27
8.2.40.0130.00417.20
8.2.30.0110.00517.14
8.2.20.0080.01117.19
8.2.10.0040.01317.36
8.2.00.0080.00817.49
8.1.330.0110.00721.86
8.1.320.0060.01318.05
8.1.310.0190.00015.96
8.1.300.0130.00415.80
8.1.290.0110.00516.08
8.1.280.0140.00415.80
8.1.270.0150.00517.19
8.1.260.0110.00417.51
8.1.250.0160.00317.29
8.1.240.0140.00517.04
8.1.230.0160.00017.02
8.1.220.0120.00417.19
8.1.210.0090.00616.95
8.1.200.0130.00317.01
8.1.190.0150.00216.94
8.1.180.0110.00516.46
8.1.170.0140.00516.93
8.1.160.0160.00016.86
8.1.150.0130.00317.05
8.1.140.0100.00616.96
8.1.130.0140.00516.94
8.1.120.0150.00517.02
8.1.110.0160.00017.08
8.1.100.0110.00716.82
8.1.90.0110.00416.98
8.1.80.0110.00516.92
8.1.70.0100.00717.06
8.1.60.0180.00016.96
8.1.50.0190.00016.82
8.1.40.0170.00017.02
8.1.30.0120.00717.19
8.1.20.0150.00217.16
8.1.10.0110.00717.15
8.1.00.0120.00616.95

preferences:
26.9 ms | 403 KiB | 5 Q