3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { public function hello(): string { return "Hello World!"; } } function bla(): Test { return new Test(); } $test = bla(); echo $test->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.0140.00716.50
8.3.50.0120.00722.05
8.3.40.0000.01418.62
8.3.30.0140.00018.73
8.3.20.0140.00020.04
8.3.10.0040.00423.70
8.3.00.0080.00019.97
8.2.180.0070.00718.29
8.2.170.0070.00722.96
8.2.160.0070.00720.35
8.2.150.0070.00024.18
8.2.140.0000.00824.66
8.2.130.0060.00319.35
8.2.120.0050.00326.35
8.2.110.0060.00321.04
8.2.100.0040.00717.93
8.2.90.0000.00819.21
8.2.80.0060.00317.97
8.2.70.0000.00917.63
8.2.60.0080.00018.05
8.2.50.0040.00418.07
8.2.40.0000.00820.84
8.2.30.0030.00320.62
8.2.20.0000.00817.69
8.2.10.0000.00718.03
8.2.00.0000.00817.89
8.1.280.0130.00325.92
8.1.270.0040.00418.96
8.1.260.0070.00028.09
8.1.250.0080.00028.09
8.1.240.0080.00323.54
8.1.230.0040.00719.00
8.1.220.0040.00417.74
8.1.210.0030.00518.77
8.1.200.0060.00317.23
8.1.190.0050.00317.50
8.1.180.0060.00318.10
8.1.170.0030.00518.27
8.1.160.0000.00720.63
8.1.150.0080.00018.88
8.1.140.0000.00819.38
8.1.130.0030.00317.49
8.1.120.0040.00417.35
8.1.110.0000.00717.34
8.1.100.0030.00517.42
8.1.90.0000.00717.40
8.1.80.0070.00017.34
8.1.70.0000.00717.40
8.1.60.0000.00817.50
8.1.50.0080.00017.52
8.1.40.0000.00917.49
8.1.30.0030.00617.60
8.1.20.0080.00017.61
8.1.10.0080.00017.54
8.1.00.0040.00417.51
8.0.300.0000.00718.77
8.0.290.0040.00416.75
8.0.280.0070.00018.43
8.0.270.0070.00017.20
8.0.260.0060.00017.30
8.0.250.0020.00516.93
8.0.240.0080.00016.94
8.0.230.0100.00016.77
8.0.220.0030.00316.76
8.0.210.0040.00416.68
8.0.200.0000.00616.85
8.0.190.0040.00416.75
8.0.180.0030.00616.86
8.0.170.0030.00716.78
8.0.160.0000.00816.92
8.0.150.0050.00216.77
8.0.140.0050.00516.70
8.0.130.0030.00313.20
8.0.120.0040.00416.77
8.0.110.0000.00816.73
8.0.100.0000.00816.64
8.0.90.0000.00716.84
8.0.80.0030.01216.81
8.0.70.0030.00516.71
8.0.60.0040.00416.71
8.0.50.0040.00416.77
8.0.30.0160.00617.25
8.0.20.0080.01017.40
8.0.10.0040.00416.86
8.0.00.0120.00716.81
7.4.330.0050.00016.89
7.4.320.0020.00516.45
7.4.300.0000.00616.61
7.4.290.0040.00416.50
7.4.280.0000.00916.48
7.4.270.0000.00816.60
7.4.260.0000.00716.40
7.4.250.0000.00816.59
7.4.240.0040.00316.48
7.4.230.0040.00416.23
7.4.220.0100.00716.47
7.4.210.0040.01116.53
7.4.200.0030.00316.38
7.4.160.0030.01216.38
7.4.150.0100.00717.40
7.4.140.0120.00917.86
7.4.130.0070.01216.56
7.4.120.0110.00616.39
7.4.110.0070.01016.36
7.4.100.0030.01316.64
7.4.90.0090.00816.55
7.4.80.0090.00919.39
7.4.70.0090.00916.40
7.4.60.0120.00616.38
7.4.50.0040.01116.43
7.4.40.0030.01716.55
7.4.30.0030.01316.36
7.4.00.0100.00714.78
7.3.330.0030.00313.33
7.3.320.0050.00013.30
7.3.310.0000.00716.16
7.3.300.0030.00316.30
7.3.290.0070.00716.28
7.3.280.0070.01016.30
7.3.270.0100.00717.40
7.3.260.0130.00316.59
7.3.250.0120.00716.43
7.3.240.0120.00816.38
7.3.230.0120.00816.39
7.3.210.0030.01216.44
7.3.200.0060.01116.16
7.3.190.0060.01016.52
7.3.180.0090.01316.55
7.3.170.0070.01016.39
7.3.160.0060.01016.34
7.2.330.0100.01616.59
7.2.320.0080.00616.51
7.2.310.0150.00416.51
7.2.300.0030.01316.37
7.2.290.0110.00616.63
7.2.60.0110.00416.53
7.2.00.0000.01119.12
7.1.200.0060.00615.77
7.1.100.0000.01218.18
7.1.70.0000.00816.80
7.1.60.0070.01819.13
7.1.50.0070.01516.86
7.1.00.0030.07722.32
7.0.200.0040.00416.32
7.0.60.0200.06719.96
7.0.50.0030.08717.83
7.0.40.0030.04320.25
7.0.30.0270.05320.23
7.0.20.0270.08020.24
7.0.10.0100.08720.24
7.0.00.0030.08720.06
5.6.280.0030.03321.10
5.6.210.0070.05720.45
5.6.200.0100.08718.16
5.6.190.0030.05020.55
5.6.180.0070.08020.50
5.6.170.0230.05020.62
5.6.160.0100.04720.71
5.6.150.0130.06318.12
5.6.140.0100.06318.18
5.6.130.0030.08318.21
5.6.120.0100.05021.15
5.6.110.0130.07721.13
5.6.100.0130.05320.98
5.6.90.0100.07720.97
5.6.80.0100.05020.39
5.5.350.4230.04020.38
5.5.340.0030.08717.98
5.5.330.0070.03720.30
5.5.320.0230.06020.38
5.5.310.0200.04020.30
5.5.300.0070.04717.98
5.5.290.0100.07018.03
5.5.280.0130.06720.88
5.5.270.0030.04020.62
5.5.260.0100.07720.63
5.5.250.0130.07720.58
5.5.240.0170.07320.07

preferences:
51.49 ms | 401 KiB | 5 Q