3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface Foo { public static function fromScalar($scalar); } class Bar implements Foo { public static function fromScalar($scalar) { echo 'Hello' . PHP_EOL; } } class Baz implements Foo { } Bar::fromScalar('hello'); Baz::fromScalar('hello');

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.0060.01216.61
8.3.50.0110.00821.97
8.3.40.0110.00718.71
8.3.30.0110.00418.62
8.3.20.0070.00020.24
8.3.10.0070.00021.73
8.3.00.0000.00819.59
8.2.180.0040.01118.54
8.2.170.0120.00322.96
8.2.160.0080.00520.52
8.2.150.0080.00024.18
8.2.140.0030.00624.66
8.2.130.0040.00419.24
8.2.120.0040.00426.35
8.2.110.0100.00021.00
8.2.100.0080.00417.93
8.2.90.0040.00419.04
8.2.80.0030.00517.97
8.2.70.0060.00317.50
8.2.60.0040.00417.93
8.2.50.0030.00518.07
8.2.40.0040.00422.24
8.2.30.0000.00720.55
8.2.20.0000.00717.55
8.2.10.0040.00417.98
8.2.00.0000.00817.90
8.1.280.0070.00725.92
8.1.270.0060.00320.28
8.1.260.0050.00328.09
8.1.250.0040.00428.09
8.1.240.0030.00621.24
8.1.230.0080.00417.71
8.1.220.0040.00417.74
8.1.210.0000.00918.77
8.1.200.0000.00917.23
8.1.190.0080.00017.13
8.1.180.0000.00718.10
8.1.170.0080.00018.59
8.1.160.0040.00420.68
8.1.150.0020.00518.86
8.1.140.0030.00519.39
8.1.130.0070.00017.68
8.1.120.0040.00417.45
8.1.110.0040.00417.28
8.1.100.0030.00517.32
8.1.90.0040.00417.35
8.1.80.0040.00417.39
8.1.70.0000.00717.27
8.1.60.0000.00817.52
8.1.50.0080.00017.48
8.1.40.0000.00717.46
8.1.30.0080.00017.48
8.1.20.0040.00417.50
8.1.10.0030.00517.29
8.1.00.0050.00317.21
8.0.300.0070.00318.77
8.0.290.0050.00516.63
8.0.280.0050.00318.31
8.0.270.0000.00717.09
8.0.260.0000.00617.23
8.0.250.0040.00416.94
8.0.240.0030.00316.98
8.0.230.0030.00317.00
8.0.220.0040.00416.75
8.0.210.0040.00416.82
8.0.200.0000.00716.96
8.0.190.0090.00016.83
8.0.180.0000.00816.92
8.0.170.0060.00316.88
8.0.160.0000.00716.96
8.0.150.0000.01016.93
8.0.140.0070.00016.85
8.0.130.0050.00313.30
8.0.120.0080.00016.89
8.0.110.0000.00816.88
8.0.100.0000.00716.94
8.0.90.0000.00816.95
8.0.80.0060.01316.92
8.0.70.0070.00016.95
8.0.60.0070.00016.87
8.0.50.0000.00816.75
8.0.30.0120.00617.05
8.0.20.0100.00817.40
8.0.10.0000.00717.01
8.0.00.0020.01516.67
7.4.330.0020.00216.63
7.4.320.0000.00716.46
7.4.300.0060.00016.54
7.4.290.0030.00316.55
7.4.280.0080.00016.51
7.4.270.0000.00716.44
7.4.260.0000.00716.41
7.4.250.0000.00816.44
7.4.240.0030.00416.40
7.4.230.0000.00716.27
7.4.220.0120.00816.41
7.4.210.0100.00416.52
7.4.200.0030.00316.55
7.4.160.0060.00916.45
7.4.150.0100.00717.40
7.4.140.0140.00617.86
7.4.130.0120.00516.52
7.4.120.0130.00816.36
7.4.110.0230.00016.51
7.4.100.0030.01416.40
7.4.90.0140.00716.29
7.4.80.0150.00319.39
7.4.70.0030.01716.34
7.4.60.0060.01016.33
7.4.50.0110.00316.23
7.4.40.0150.00616.58
7.4.30.0000.01816.43
7.4.00.0090.00614.76
7.3.330.0050.00013.17
7.3.320.0040.00313.32
7.3.310.0040.00416.13
7.3.300.0030.00316.12
7.3.290.0060.00016.24
7.3.280.0070.01116.23
7.3.270.0070.01017.40
7.3.260.0090.00916.43
7.3.250.0090.01216.38
7.3.240.0100.01116.25
7.3.230.0140.00316.39
7.3.210.0100.01316.32
7.3.200.0160.00016.15
7.3.190.0130.00316.38
7.3.180.0030.01316.41
7.3.170.0080.00816.27
7.3.160.0200.00316.44
7.2.330.0140.00316.50
7.2.320.0090.00916.43
7.2.310.0120.00616.36
7.2.300.0090.00916.66
7.2.290.0100.00716.29
7.2.80.0220.00716.21
7.2.60.0080.00816.52
7.2.00.0090.00919.55
7.1.200.0030.01015.26
7.1.100.0030.01017.89
7.1.70.0000.00717.00
7.1.60.0140.01019.52
7.1.50.0030.01916.93
7.1.00.0030.07022.57
7.0.200.0030.00716.43
7.0.60.0100.08019.94
7.0.50.0170.07317.86
7.0.40.0030.09320.10
7.0.30.0170.04720.09
7.0.20.0400.05020.21
7.0.10.0070.06020.08
7.0.00.0070.08320.11
5.6.280.0030.04720.82
5.6.210.0130.05720.51
5.6.200.0100.04018.25
5.6.190.0070.05020.50
5.6.180.0300.07720.51
5.6.170.0330.06720.44
5.6.160.0170.07320.57
5.6.150.0170.07718.22
5.6.140.0000.05018.27
5.6.130.0030.08318.28
5.6.120.0070.04021.14
5.6.110.0170.08021.11
5.6.100.0070.08721.08
5.6.90.0100.08720.97
5.6.80.0030.06320.54
5.5.350.0130.07720.47
5.5.340.0170.04717.98
5.5.330.0030.09020.28
5.5.320.0270.08320.38
5.5.310.0170.07020.24
5.5.300.0070.07717.95
5.5.290.0130.03017.93
5.5.280.0100.05020.69
5.5.270.0070.08320.77
5.5.260.0070.07720.87
5.5.250.0070.08720.55
5.5.240.0300.05720.28

preferences:
50.53 ms | 401 KiB | 5 Q