3v4l.org

run code in 300+ PHP versions simultaneously
<?php const SomeInterface = 1; const AnotherInterface = 2; $object = AnotherInterface; var_dump( match ($object) { SomeInterface => 'foo', AnotherInterface => '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.3.60.0040.01116.38
8.3.50.0140.00720.11
8.3.40.0190.00022.16
8.3.30.0060.00919.17
8.3.20.0040.00424.18
8.3.10.0030.00624.66
8.3.00.0090.00026.16
8.2.180.0090.00625.92
8.2.170.0090.01218.95
8.2.160.0070.01422.96
8.2.150.0030.00625.66
8.2.140.0090.00024.66
8.2.130.0050.00326.16
8.2.120.0040.00420.02
8.2.110.0070.00321.04
8.2.100.0080.00417.72
8.2.90.0040.00418.93
8.2.80.0030.00517.97
8.2.70.0000.00817.63
8.2.60.0000.00818.03
8.2.50.0060.00318.07
8.2.40.0080.00018.22
8.2.30.0050.00517.93
8.2.20.0040.00420.30
8.2.10.0000.00817.93
8.2.00.0040.00419.27
8.1.280.0100.01025.92
8.1.270.0050.00323.99
8.1.260.0040.00426.35
8.1.250.0060.00328.09
8.1.240.0030.00621.12
8.1.230.0000.01119.01
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0030.00617.35
8.1.190.0050.00317.35
8.1.180.0080.00018.10
8.1.170.0000.00818.65
8.1.160.0000.00718.88
8.1.150.0000.00818.67
8.1.140.0000.00717.49
8.1.130.0050.00317.36
8.1.120.0070.00017.48
8.1.110.0060.00317.47
8.1.100.0040.00417.50
8.1.90.0040.00417.46
8.1.80.0040.00417.44
8.1.70.0070.00017.47
8.1.60.0000.00817.54
8.1.50.0110.00317.43
8.1.40.0090.00617.42
8.1.30.0180.00617.68
8.1.20.0160.00817.50
8.1.10.0160.00817.33
8.1.00.0130.01017.43
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0000.00718.44
8.0.270.0000.00716.81
8.0.260.0030.00316.70
8.0.250.0080.00016.96
8.0.240.0030.00616.86
8.0.230.0030.00317.00
8.0.220.0050.00216.78
8.0.210.0000.00716.93
8.0.200.0030.00317.01
8.0.190.0000.00716.95
8.0.180.0070.00016.95
8.0.170.0200.00016.77
8.0.160.0160.00316.82
8.0.150.0190.00016.79
8.0.140.0140.00516.80
8.0.130.0130.00516.78
8.0.120.0150.00316.85
8.0.110.0160.00316.71
8.0.100.0210.00016.82
8.0.90.0170.00816.85
8.0.80.0200.00016.84
8.0.70.0000.01416.69
8.0.60.0000.01416.78
8.0.50.0100.00316.80
8.0.30.0120.00016.78
8.0.20.0090.00316.99
8.0.10.0130.00016.98
7.4.330.0030.00315.55
7.4.320.0030.00316.50
7.4.300.0060.00316.24
7.4.290.0030.00316.20
7.4.280.0180.00416.43
7.4.270.0190.00316.21
7.4.260.0040.00416.26
7.4.250.0100.00316.32
7.4.240.0090.00316.43
7.4.230.0080.00816.40
7.4.220.0140.00516.32
7.4.210.0100.00316.32
7.4.200.0130.00316.42
7.4.190.0060.00616.29
7.4.180.0100.00316.46
7.4.160.0100.00316.30
7.4.150.0130.00316.32
7.4.140.0140.00316.27
7.4.130.0160.00416.29
7.4.120.0130.00316.21
7.4.110.0120.00616.22
7.4.100.0130.00316.47
7.4.90.0130.00016.29
7.4.80.0080.00416.20
7.4.70.0120.00016.20
7.4.60.0080.00816.26
7.4.50.0120.00016.14
7.4.40.0000.00816.23
7.4.30.0000.01016.14
7.4.20.0090.00316.19
7.4.10.0090.00416.11
7.4.00.0040.00916.23

preferences:
55.39 ms | 401 KiB | 5 Q