3v4l.org

run code in 500+ PHP versions simultaneously
<?php $statusCode = 10; $message = match ($statusCode) { 200, 300 => null, 400 => 'not found', 500 => 'server error', }; echo $message;

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.30.0090.00920.09
8.5.20.0040.00418.70
8.5.10.0080.01016.99
8.5.00.0140.01020.07
8.4.180.0110.01023.88
8.4.170.0080.01321.91
8.4.160.0140.00821.65
8.4.150.0100.00316.88
8.4.140.0150.00617.63
8.4.130.0060.00518.00
8.4.120.0120.00824.21
8.4.110.0060.00822.20
8.4.100.0080.00718.93
8.4.90.0150.00718.45
8.4.80.0050.00518.50
8.4.70.0100.00920.59
8.4.60.0050.00620.37
8.4.50.0130.00818.57
8.4.40.0100.01017.92
8.4.30.0130.00618.81
8.4.20.0120.00819.79
8.4.10.0070.00419.57
8.3.300.0040.00620.70
8.3.290.0110.01020.65
8.3.280.0100.00918.52
8.3.270.0110.00916.68
8.3.260.0100.00816.53
8.3.250.0110.00718.77
8.3.240.0120.00717.11
8.3.230.0030.00519.11
8.3.220.0060.00218.97
8.3.210.0100.00416.67
8.3.200.0060.00316.94
8.3.190.0120.00616.99
8.3.180.0110.00818.82
8.3.170.0100.00716.95
8.3.160.0130.00618.79
8.3.150.0090.00916.79
8.3.140.0090.00616.71
8.3.130.0040.00418.61
8.3.120.0030.00618.80
8.3.110.0060.00920.94
8.3.100.0000.01016.63
8.3.90.0040.00426.77
8.3.80.0000.00917.97
8.3.70.0100.01016.63
8.3.60.0120.00318.56
8.3.50.0160.00616.85
8.3.40.0130.00323.61
8.3.30.0090.00619.04
8.3.20.0040.00424.18
8.3.10.0040.00424.66
8.3.00.0070.00026.16
8.2.300.0120.01022.06
8.2.290.0130.00520.46
8.2.280.0090.00918.50
8.2.270.0110.00716.48
8.2.260.0070.00716.92
8.2.250.0040.00416.82
8.2.240.0090.00018.83
8.2.230.0060.00322.58
8.2.220.0090.00024.06
8.2.210.0040.00426.77
8.2.200.0040.00416.38
8.2.190.0120.00616.75
8.2.180.0150.00316.50
8.2.170.0070.01019.05
8.2.160.0070.01022.96
8.2.150.0080.00025.66
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0120.00319.49
8.2.110.0030.00719.26
8.2.100.0330.00818.44
8.2.90.0150.01618.44
8.2.80.0260.00418.44
8.2.70.0300.00018.44
8.2.60.0310.00018.44
8.2.50.0210.00918.44
8.2.40.0270.00018.44
8.2.30.0280.00018.44
8.2.20.0190.00818.44
8.2.10.0160.01018.44
8.2.00.0240.00318.44
8.1.340.0140.00617.93
8.1.330.0030.00522.10
8.1.320.0150.00516.39
8.1.310.0070.01118.56
8.1.300.0000.00816.40
8.1.290.0090.00030.84
8.1.280.0170.00325.92
8.1.270.0080.00024.66
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00319.21
8.1.230.0130.01318.44
8.1.220.0220.00418.44
8.1.210.0200.00718.44
8.1.200.0230.00418.44
8.1.190.0210.00718.44
8.1.180.0250.00418.44
8.1.170.0210.00818.44
8.1.160.0220.00518.44
8.1.150.0250.00318.44
8.1.140.0250.00318.44
8.1.130.0240.00318.44
8.1.120.0250.00318.44
8.1.110.0200.00818.44
8.1.100.0230.00318.44
8.1.90.0230.00318.44
8.1.80.0300.00018.44
8.1.70.0270.00318.44
8.1.60.0180.00918.44
8.1.50.0210.00418.44
8.1.40.0260.00018.44
8.1.30.0250.00318.44
8.1.20.0220.00418.44
8.1.10.0340.00018.44
8.1.00.0190.00918.44
8.0.300.0160.00618.44
8.0.290.0230.00318.44
8.0.280.0190.00718.44
8.0.270.0220.00318.44
8.0.260.0200.00618.44
8.0.250.0180.00718.44
8.0.240.0240.00418.44
8.0.230.0230.00318.44
8.0.220.0220.00318.44
8.0.210.0270.00018.44
8.0.200.0220.00518.44
8.0.190.0230.00318.44
8.0.180.0200.00718.44
8.0.170.0260.00018.44
8.0.160.0330.00318.44
8.0.150.0140.00818.46
8.0.140.0250.00418.44
8.0.130.0140.00718.44
8.0.120.0190.00818.44
8.0.110.0180.00718.44
8.0.100.0230.00318.44
8.0.90.0260.00418.44
8.0.80.0210.00918.44
8.0.70.0240.00318.44
8.0.60.0250.00418.44
8.0.50.0230.00518.44
8.0.30.0250.00318.44
8.0.20.0210.00718.44
8.0.10.0190.01018.44

preferences:
54.58 ms | 1121 KiB | 5 Q