3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo {} class Bar {} function test($value) { var_dump(match (true) { $value instanceof Foo => 'Foo', $value instanceof Bar => 'Bar', }); } test(new Foo()); test(new Bar());

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.0110.00820.64
8.4.110.0090.01018.83
8.4.100.0110.00617.92
8.4.90.0090.01120.73
8.4.80.0130.00717.55
8.4.70.0110.00917.82
8.4.60.0130.00818.75
8.4.50.0150.00618.88
8.4.40.0120.00917.77
8.4.30.0000.00820.28
8.4.20.0140.00719.63
8.4.10.0110.00819.41
8.3.250.0130.00618.89
8.3.240.0050.00316.30
8.3.230.0090.00916.60
8.3.220.0070.01017.08
8.3.210.0060.01219.06
8.3.200.0060.00316.19
8.3.190.0070.00816.96
8.3.180.0130.00716.97
8.3.170.0120.00620.82
8.3.160.0150.00318.44
8.3.150.0180.00017.21
8.3.140.0080.00016.79
8.3.130.0060.00318.29
8.3.120.0050.00518.93
8.3.110.0000.00816.39
8.3.100.0100.01024.06
8.3.90.0000.00826.77
8.3.80.0110.00016.38
8.3.70.0150.00018.18
8.3.60.0090.00616.50
8.3.50.0150.00524.43
8.3.40.0040.01120.46
8.3.30.0070.00718.75
8.3.20.0070.00024.18
8.3.10.0000.00824.66
8.3.00.0070.00026.16
8.2.290.0090.01020.58
8.2.280.0120.00518.52
8.2.270.0130.00717.15
8.2.260.0140.00318.18
8.2.250.0040.00418.44
8.2.240.0130.00317.21
8.2.230.0140.00720.94
8.2.220.0090.00037.54
8.2.210.0040.00426.77
8.2.200.0040.00416.50
8.2.190.0040.01516.58
8.2.180.0100.00625.92
8.2.170.0040.01218.82
8.2.160.0100.00322.96
8.2.150.0070.00025.66
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0070.00026.35
8.2.110.0060.00320.43
8.2.100.0030.00718.81
8.1.330.0100.00821.82
8.1.320.0140.00616.14
8.1.310.0090.00916.77
8.1.300.0040.00418.29
8.1.290.0030.00618.88
8.1.280.0140.00725.92
8.1.270.0070.00023.99
8.1.260.0050.00228.09
8.1.250.0040.00428.09
8.1.240.0040.00818.50
8.1.230.0060.00318.14
7.4.100.0100.00816.49
7.4.90.0070.00916.29
7.4.80.0110.00616.18
7.4.70.0060.01116.30
7.4.60.0060.01216.29
7.4.50.0050.01616.44
7.4.40.0100.01016.27
7.4.30.0070.01016.42
7.4.20.0070.01116.29
7.4.10.0100.00816.21
7.4.00.0100.00916.27
7.3.220.0070.01016.25
7.3.210.0070.00916.25
7.3.200.0090.00816.18
7.3.190.0090.00916.17
7.3.180.0060.01316.22
7.3.170.0160.00416.19
7.3.160.0100.01316.20
7.3.150.0020.01616.08
7.3.140.0080.00916.15
7.3.130.0090.00716.21
7.3.120.0070.00816.35
7.3.110.0100.00716.12
7.3.100.0100.00816.17
7.3.90.0080.00916.12
7.3.80.0100.00616.18
7.3.70.0130.00316.12
7.3.60.0130.00316.15
7.3.50.0080.00916.20
7.3.40.0070.00916.21
7.3.30.0060.01016.09
7.3.20.0090.00816.17
7.3.10.0090.00816.19
7.3.00.0130.00816.17
7.2.330.0090.01016.45
7.2.320.0140.00416.37
7.2.310.0090.01016.39
7.2.300.0100.01016.32
7.2.290.0110.00916.44
7.2.280.0090.00816.22
7.2.270.0080.01016.24
7.2.260.0050.01316.24
7.2.250.0100.00716.41
7.2.240.0090.01016.18
7.2.230.0090.00816.25
7.2.220.0060.01116.41
7.2.210.0060.01016.27
7.2.200.0080.00816.30
7.2.190.0100.00716.24
7.2.180.0120.00416.34
7.2.170.0100.00716.38
7.2.160.0070.00916.18
7.2.150.0100.00716.47
7.2.140.0080.00916.26
7.2.130.0090.00916.34
7.2.120.0070.01016.32
7.2.110.0090.00916.47
7.2.100.0200.00716.26
7.2.90.0090.00816.34
7.2.80.0070.01016.31
7.2.70.0120.00516.28
7.2.60.0070.01116.33
7.2.50.0120.00616.26
7.2.40.0150.00216.37
7.2.30.0260.00516.42
7.2.20.0150.00316.30
7.2.10.0130.00316.27
7.2.00.0080.00816.40

preferences:
27.4 ms | 403 KiB | 5 Q