3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = 'test'; $function = match ($foo) { 'bar' => function () { $a = 'whatever'; return $a; }, 'test' => function () { return 'it works'; } }; echo $function();

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.3.130.0060.00318.59
8.3.120.0000.00819.00
8.3.110.0080.00016.50
8.3.100.0090.00016.25
8.3.90.0110.00326.77
8.3.80.0090.00018.43
8.3.70.0080.01216.50
8.3.60.0070.00718.43
8.3.50.0150.00316.57
8.3.40.0030.01621.91
8.3.30.0120.00319.17
8.3.20.0060.00324.18
8.3.10.0060.00324.66
8.3.00.0050.00326.16
8.2.250.0090.00316.49
8.2.240.0030.00618.84
8.2.230.0100.00020.94
8.2.220.0080.00324.06
8.2.210.0140.00326.77
8.2.200.0030.00718.41
8.2.190.0110.00416.63
8.2.180.0090.00616.62
8.2.170.0070.01418.79
8.2.160.0040.01122.96
8.2.150.0050.00325.66
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0080.00022.27
8.2.110.0030.00620.35
8.2.100.0080.00317.72
8.2.90.0040.00817.75
8.2.80.0240.00617.50
8.2.70.0170.01317.35
8.2.60.0260.00517.13
8.2.50.0240.00717.25
8.2.40.0190.00717.50
8.2.30.0240.00317.38
8.2.20.0040.00817.50
8.2.10.0270.00017.13
8.2.00.0260.00017.73
8.1.300.0060.00317.89
8.1.290.0040.00430.84
8.1.280.0110.00325.92
8.1.270.0000.00824.66
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0090.00023.83
8.1.230.0060.00622.71
8.1.220.0250.00617.00
8.1.210.0260.00516.88
8.1.200.0210.00617.00
8.1.190.0190.00617.22
8.1.180.0170.01016.88
8.1.170.0200.00617.25
8.1.160.0200.00717.13
8.1.150.0130.01316.98
8.1.140.0220.00417.25
8.1.130.0180.00917.13
8.1.120.0170.00917.38
8.1.110.0260.00017.13
8.1.100.0210.00717.23
8.1.90.0280.00317.23
8.1.80.0230.00717.38
8.1.70.0290.00017.00
8.1.60.0170.01017.23
8.1.50.0220.00717.25
8.1.40.0220.00617.48
8.1.30.0170.01017.50
8.1.20.0280.00217.50
8.1.10.0210.00717.13
8.1.00.0200.00716.99
8.0.300.0270.00316.60
8.0.290.0200.00616.75
8.0.280.0230.00316.75
8.0.270.0170.01116.75
8.0.260.0200.00716.55
8.0.250.0210.00616.63
8.0.240.0200.00816.75
8.0.230.0220.00616.63
8.0.220.0270.00416.55
8.0.210.0400.00516.55
8.0.200.0210.00616.55
8.0.190.0190.00716.62
8.0.180.0170.01016.55
8.0.170.0200.00816.55
8.0.160.0180.01116.55
8.0.150.0190.00716.63
8.0.140.0220.00616.63
8.0.130.0190.01016.55
8.0.120.0220.00516.55
8.0.110.0240.00316.55
8.0.100.0210.00716.55
8.0.90.0210.00816.55
8.0.80.0220.00616.63
8.0.70.0280.00016.55
8.0.60.0270.00316.62
8.0.50.0230.00616.55
8.0.30.0270.00016.55
8.0.20.0170.01116.55
8.0.10.0220.00316.55

preferences:
25.78 ms | 403 KiB | 5 Q