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.4.120.0120.00723.74
8.4.110.0050.01218.79
8.4.100.0110.00818.70
8.4.90.0060.00420.43
8.4.80.0060.00418.85
8.4.70.0150.00620.67
8.4.60.0090.01119.05
8.4.50.0110.00918.62
8.4.40.0030.00619.14
8.4.30.0030.01820.57
8.4.20.0040.01517.93
8.4.10.0060.00318.91
8.3.250.0100.00818.92
8.3.240.0050.00317.38
8.3.230.0110.00816.81
8.3.220.0090.00818.93
8.3.210.0110.00918.46
8.3.200.0060.00316.66
8.3.190.0080.01017.14
8.3.180.0100.00918.84
8.3.170.0110.00716.53
8.3.160.0110.00716.93
8.3.150.0040.00716.41
8.3.140.0030.00618.77
8.3.130.0030.00618.34
8.3.120.0030.00618.86
8.3.110.0090.00020.94
8.3.100.0030.00624.06
8.3.90.0040.00426.77
8.3.80.0060.00316.50
8.3.70.0160.00316.61
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.290.0090.00920.59
8.2.280.0090.01018.19
8.2.270.0090.00616.55
8.2.260.0150.00316.57
8.2.250.0070.01116.36
8.2.240.0130.00317.00
8.2.230.0060.00322.58
8.2.220.0060.00337.54
8.2.210.0040.01526.77
8.2.200.0060.00318.29
8.2.190.0140.00716.75
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.330.0110.00821.64
8.1.320.0150.00716.21
8.1.310.0080.01116.32
8.1.300.0080.00018.59
8.1.290.0060.00330.84
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:
26.57 ms | 403 KiB | 5 Q