3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function test() : string { return 'test'; } } class Bar extends Foo { public function test(string $word = '') : string { return parent::test() . ' ' . $word; } } $bar = new Bar(); echo $bar->test('huya');

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.0090.00723.96
8.4.110.0140.00620.83
8.4.100.0110.00917.50
8.4.90.0110.00917.92
8.4.80.0080.00519.43
8.4.70.0100.00919.71
8.4.60.0170.00418.64
8.4.50.0030.00518.84
8.4.40.0100.01019.52
8.4.30.0170.00018.72
8.4.20.0100.01022.49
8.4.10.0100.01025.74
8.3.250.0090.00318.83
8.3.240.0060.00317.22
8.3.230.0130.00716.68
8.3.220.0090.00816.44
8.3.210.0080.00416.70
8.3.200.0060.00216.57
8.3.190.0050.00517.30
8.3.180.0110.00817.16
8.3.170.0090.00920.97
8.3.160.0150.00416.55
8.3.150.0090.00617.18
8.3.140.0120.00616.26
8.3.130.0090.00016.48
8.3.120.0000.00920.62
8.3.110.0080.00020.94
8.3.100.0080.00024.06
8.3.90.0090.00626.77
8.3.80.0060.00617.97
8.3.70.0060.00918.18
8.3.60.0160.00018.37
8.3.50.0140.00716.45
8.3.40.0090.00620.17
8.3.30.0130.00318.42
8.3.20.0040.00424.18
8.3.10.0060.00924.66
8.3.00.0040.00426.16
8.2.290.0120.00719.01
8.2.280.0020.00618.50
8.2.270.0100.00617.15
8.2.260.0080.00016.71
8.2.250.0070.00718.25
8.2.240.0100.00018.71
8.2.230.0040.00422.58
8.2.220.0040.00437.54
8.2.210.0120.00326.77
8.2.200.0060.00316.63
8.2.190.0070.01516.58
8.2.180.0110.01116.50
8.2.170.0140.00718.96
8.2.160.0100.01022.96
8.2.150.0150.00025.66
8.2.140.0030.00524.66
8.2.130.0040.00426.16
8.2.120.0040.00426.16
8.2.110.0090.00019.16
8.2.100.0040.00717.72
8.2.90.0030.00619.64
8.2.80.0040.00417.63
8.2.70.0080.00017.63
8.2.60.0080.00017.93
8.2.50.0030.00618.07
8.2.40.0040.00419.95
8.2.30.0050.00318.04
8.2.20.0000.00719.35
8.2.10.0000.00717.51
8.2.00.0030.00617.64
8.1.330.0060.01121.82
8.1.320.0060.00516.30
8.1.310.0070.01015.96
8.1.300.0040.00417.97
8.1.290.0040.00430.84
8.1.280.0180.00425.92
8.1.270.0060.00324.66
8.1.260.0070.00026.35
8.1.250.0100.00328.09
8.1.240.0090.00022.50
8.1.230.0090.00322.74
8.1.220.0040.00417.74
8.1.210.0030.00618.93
8.1.200.0100.00017.48
8.1.190.0000.00717.22
8.1.180.0040.00422.07
8.1.170.0040.00418.73
8.1.160.0040.00418.80
8.1.150.0060.00318.55
8.1.140.0030.00517.49
8.1.130.0040.00417.30
8.1.120.0040.00417.38
8.1.110.0000.00717.50
8.1.100.0000.01017.39
8.1.90.0070.00017.56
8.1.80.0000.00817.39
8.1.70.0070.00017.43
8.1.60.0000.00717.55
8.1.50.0040.00417.58
8.1.40.0000.00717.63
8.1.30.0040.00417.68
8.1.20.0000.00717.66
8.1.10.0040.00417.60
8.1.00.0030.00517.45
8.0.300.0000.00819.76
8.0.290.0040.00416.63
8.0.280.0030.00318.40
8.0.270.0030.00516.76
8.0.260.0030.00316.70
8.0.250.0000.00716.73
8.0.240.0000.00716.75
8.0.230.0030.00516.98
8.0.220.0050.00316.76
8.0.210.0000.00816.81
8.0.200.0030.00516.88
8.0.190.0000.00716.75
8.0.180.0070.00016.81
8.0.170.0030.00316.87
8.0.160.0050.00216.93
8.0.150.0040.00416.75
8.0.140.0030.00316.82
8.0.130.0030.00316.71
8.0.120.0030.00316.76
8.0.110.0040.00418.62
8.0.100.0040.00416.80
8.0.90.0040.00416.70
8.0.80.0070.00016.80
8.0.70.0070.00016.79
8.0.60.0070.00016.76
8.0.50.0040.00416.82
8.0.30.0030.00616.80
8.0.20.0060.00316.86
8.0.10.0090.00016.91

preferences:
26.77 ms | 403 KiB | 5 Q