3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { public function hello(): string { return "Hello World!"; } } class Test2 { public function hello(): string { return "Test2 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.0160.00716.38
8.3.50.0240.00521.87
8.3.40.0100.01018.77
8.3.30.0040.01118.68
8.3.20.0140.00020.26
8.3.10.0040.00423.71
8.3.00.0040.00419.91
8.2.180.0140.00716.38
8.2.170.0100.01022.96
8.2.160.0100.00320.52
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0100.00726.16
8.2.120.0110.00719.77
8.2.110.0060.00320.43
8.2.100.0070.00418.05
8.2.90.0080.00019.05
8.2.80.0040.00417.97
8.2.70.0100.00017.63
8.2.60.0050.00317.93
8.2.50.0040.00418.07
8.2.40.0000.00820.89
8.2.30.0030.00620.69
8.2.20.0040.00417.77
8.2.10.0000.00718.09
8.2.00.0040.00417.86
8.1.280.0070.01125.92
8.1.270.0040.00418.86
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0040.00423.80
8.1.230.0070.00419.14
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0030.00617.25
8.1.190.0040.00417.38
8.1.180.0040.00418.10
8.1.170.0080.00018.29
8.1.160.0030.00520.60
8.1.150.0000.00718.72
8.1.140.0000.00719.41
8.1.130.0030.00317.63
8.1.120.0030.00317.29
8.1.110.0030.00417.38
8.1.100.0000.00717.35
8.1.90.0040.00417.43
8.1.80.0050.00217.24
8.1.70.0000.00717.38
8.1.60.0000.00717.58
8.1.50.0050.00317.41
8.1.40.0060.00317.41
8.1.30.0000.00817.63
8.1.20.0000.00817.59
8.1.10.0040.00417.50
8.1.00.0050.00317.52
8.0.300.0000.00718.77
8.0.290.0040.00416.75
8.0.280.0070.00018.35
8.0.270.0020.00517.19
8.0.260.0000.00617.24
8.0.250.0060.00016.98
8.0.240.0080.00016.96
8.0.230.0060.00316.86
8.0.220.0030.00316.75
8.0.210.0040.00416.76
8.0.200.0040.00416.89
8.0.190.0000.00916.78
8.0.180.0040.00416.76
8.0.170.0090.00016.79
8.0.160.0040.00416.72
8.0.150.0000.00716.66
8.0.140.0070.00316.66
8.0.130.0030.00313.26
8.0.120.0000.00816.70
8.0.110.0030.00316.84
8.0.100.0040.00416.83
8.0.90.0050.00216.85
8.0.80.0080.00616.86
8.0.70.0000.00716.88
8.0.60.0040.00416.84
8.0.50.0040.00416.76
8.0.30.0060.00916.89
8.0.20.0150.00617.40
8.0.10.0040.00416.98
8.0.00.0100.01116.73
7.4.330.0020.00216.76
7.4.320.0000.00716.33
7.4.300.0060.00016.47
7.4.290.0030.00316.39
7.4.280.0030.00616.48
7.4.270.0030.00316.55
7.4.260.0000.00716.47
7.4.250.0040.00416.44
7.4.240.0040.00316.58
7.4.230.0000.00816.55
7.4.220.0160.00716.38
7.4.210.0060.01016.54
7.4.200.0040.00416.59
7.4.160.0110.00416.38
7.4.150.0030.01417.40
7.4.140.0090.01317.86
7.4.130.0080.01116.41
7.4.120.0070.01116.45
7.4.110.0140.00416.37
7.4.100.0130.01016.50
7.4.90.0130.00316.53
7.4.80.0120.00619.39
7.4.70.0080.00916.56
7.4.60.0030.01316.33
7.4.50.0070.01016.50
7.4.40.0110.00616.45
7.4.30.0100.00716.40
7.4.00.0030.01315.02
7.3.330.0030.00313.30
7.3.320.0050.00013.31
7.3.310.0030.00316.15
7.3.300.0030.00316.26
7.3.290.0080.00616.26
7.3.280.0050.01016.31
7.3.270.0100.00617.40
7.3.260.0100.00716.24
7.3.250.0070.01016.33
7.3.240.0110.01216.30
7.3.230.0130.01016.39
7.3.210.0030.01316.35
7.3.200.0080.00816.21
7.3.190.0130.00616.50
7.3.180.0060.01116.29
7.3.170.0150.00616.32
7.3.160.0060.01316.42
7.2.330.0030.01316.29
7.2.320.0100.01616.36
7.2.310.0100.00716.45
7.2.300.0060.01216.62
7.2.290.0060.01616.69
7.2.60.0110.00416.86
7.2.00.0090.00319.48
7.1.200.0130.00015.64
7.1.100.0000.01117.82
7.1.70.0000.00816.97
7.1.60.0030.01719.13
7.1.50.0070.00416.55
7.1.00.0000.08022.44
7.0.200.0060.00316.57
7.0.60.0070.08319.93
7.0.50.0100.08017.86
7.0.40.0070.04020.11
7.0.30.0300.05320.24
7.0.20.0370.07020.08
7.0.10.0030.04320.26
7.0.00.0100.04720.16
5.6.280.0000.04020.86
5.6.210.0270.06720.70
5.6.200.0100.08718.29
5.6.190.0070.07020.43
5.6.180.0170.08020.57
5.6.170.0330.06720.48
5.6.160.0130.06720.55
5.6.150.0070.07718.29
5.6.140.0070.05318.21
5.6.130.0100.07718.22
5.6.120.0100.05021.00
5.6.110.0130.07321.00
5.6.100.0070.07321.08
5.6.90.0070.07720.98
5.6.80.0230.06020.33
5.5.350.4170.04320.37
5.5.340.0100.08018.03
5.5.330.0100.05020.42
5.5.320.0300.07320.24
5.5.310.0100.04720.26
5.5.300.0030.05017.98
5.5.290.0070.05317.92
5.5.280.0130.05020.80
5.5.270.0030.04320.73
5.5.260.0170.07020.68
5.5.250.0070.04020.70
5.5.240.0170.07720.16

preferences:
55.52 ms | 401 KiB | 5 Q