3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface ICommand { public function execute(); } class Test { public function execute(string $val) : string { return 'asd ' . $val; } } $t = new Test(); echo $t->execute('sample val');

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.0100.01016.50
8.3.50.0140.00718.17
8.3.40.0110.00418.73
8.3.30.0080.00818.57
8.3.20.0150.00320.05
8.3.10.0070.00021.91
8.3.00.0040.00419.14
8.2.180.0190.00316.63
8.2.170.0130.00322.96
8.2.160.0100.00319.46
8.2.150.0060.00324.18
8.2.140.0090.00624.66
8.2.130.0070.00317.63
8.2.120.0070.00026.35
8.2.110.0060.00320.94
8.2.100.0110.00017.78
8.2.90.0040.00418.08
8.2.80.0030.00519.82
8.2.70.0080.00017.93
8.2.60.0030.00618.16
8.2.50.0050.00318.10
8.2.40.0040.00420.42
8.2.30.0000.00720.61
8.2.20.0000.00817.67
8.2.10.0040.00418.11
8.2.00.0060.00317.99
8.1.280.0090.00625.92
8.1.270.0040.00423.76
8.1.260.0080.00028.09
8.1.250.0040.00428.09
8.1.240.0000.00923.97
8.1.230.0040.00720.99
8.1.220.0040.00417.74
8.1.210.0060.00318.77
8.1.200.0030.00617.35
8.1.190.0000.00817.23
8.1.180.0080.00018.10
8.1.170.0040.00418.65
8.1.160.0040.00422.00
8.1.150.0040.00418.87
8.1.140.0050.00319.52
8.1.130.0020.00517.50
8.1.120.0030.00317.30
8.1.110.0040.00417.30
8.1.100.0000.00717.34
8.1.90.0000.00717.29
8.1.80.0080.00017.37
8.1.70.0000.00717.22
8.1.60.0030.00617.58
8.1.50.0050.00317.54
8.1.40.0050.00317.53
8.1.30.0040.00817.55
8.1.20.0040.00417.51
8.1.10.0000.00817.58
8.1.00.0060.00317.41
8.0.300.0000.00719.84
8.0.290.0040.00416.75
8.0.280.0070.00018.37
8.0.270.0040.00417.32
8.0.260.0000.00717.27
8.0.250.0000.00716.85
8.0.240.0070.00016.82
8.0.230.0000.00716.90
8.0.220.0040.00416.89
8.0.210.0030.00316.93
8.0.200.0000.00616.99
8.0.190.0040.00416.91
8.0.180.0070.00016.90
8.0.170.0060.00316.77
8.0.160.0000.00717.00
8.0.150.0000.00816.85
8.0.140.0040.00416.83
8.0.130.0060.00013.27
8.0.120.0060.00316.89
8.0.110.0050.00216.87
8.0.100.0080.00016.75
8.0.90.0000.00716.69
8.0.80.0000.02016.78
8.0.70.0000.00716.63
8.0.60.0070.00016.89
8.0.50.0070.00016.86
8.0.30.0150.00517.02
8.0.20.0090.01117.42
8.0.10.0030.00516.73
8.0.00.0070.01116.58
7.4.330.0020.00216.70
7.4.320.0000.00616.55
7.4.300.0030.00316.45
7.4.290.0000.00616.54
7.4.280.0000.00716.57
7.4.270.0040.00416.61
7.4.260.0000.00616.61
7.4.250.0080.00016.49
7.4.240.0020.00516.63
7.4.230.0030.00316.43
7.4.220.0070.01116.54
7.4.210.0000.01416.51
7.4.200.0000.00716.34
7.4.160.0090.00616.34
7.4.150.0170.00017.40
7.4.140.0130.01017.86
7.4.130.0110.00616.46
7.4.120.0070.01016.45
7.4.110.0110.00716.43
7.4.100.0120.00916.29
7.4.90.0070.01016.49
7.4.80.0150.00319.39
7.4.70.0060.01016.68
7.4.60.0060.01216.41
7.4.50.0030.01116.27
7.4.40.0080.00816.52
7.4.30.0080.00816.49
7.4.00.0040.01415.13
7.3.330.0000.00513.23
7.3.320.0020.00213.07
7.3.310.0000.00716.23
7.3.300.0000.00616.20
7.3.290.0100.00616.21
7.3.280.0110.00616.28
7.3.270.0160.00617.40
7.3.260.0140.00316.32
7.3.250.0110.00916.24
7.3.240.0100.01016.25
7.3.230.0120.00616.39
7.3.210.0100.01016.31
7.3.200.0100.00716.27
7.3.190.0060.01116.17
7.3.180.0030.01416.44
7.3.170.0070.01016.46
7.3.160.0060.01016.28
7.2.330.0120.00616.79
7.2.320.0090.00916.76
7.2.310.0120.00616.76
7.2.300.0140.00316.79
7.2.290.0210.00616.54
7.2.60.0030.01416.89
7.2.00.0000.01519.47
7.1.200.0030.00615.72
7.1.100.0000.01618.02
7.1.70.0060.00316.77
7.1.60.0070.01419.48
7.1.50.0030.01516.73
7.1.00.0070.07322.49
7.0.200.0670.00714.72
7.0.60.0030.08319.93
7.0.50.0030.04017.85
7.0.40.0100.08719.97
7.0.30.0230.05720.07
7.0.20.0270.05720.22
7.0.10.0070.07720.15
7.0.00.0070.06320.21
5.6.280.0070.06321.14
5.6.210.0030.07720.61
5.6.200.0100.04318.18
5.6.190.0030.04720.50
5.6.180.0230.06020.65
5.6.170.0270.07720.60
5.6.160.0000.06020.59
5.6.150.0070.06718.29
5.6.140.0100.07318.18
5.6.130.0100.06318.19
5.6.120.0130.07721.15
5.6.110.0100.07721.12
5.6.100.0030.04021.04
5.6.90.0070.08021.10
5.6.80.0070.07720.48
5.5.350.0070.06020.53
5.5.340.0070.05018.05
5.5.330.0070.08720.26
5.5.320.0030.05720.29
5.5.310.0170.04020.21
5.5.300.0100.07017.94
5.5.290.0070.08017.96
5.5.280.0070.08720.88
5.5.270.0130.03720.84
5.5.260.0070.03720.84
5.5.250.0170.07020.47
5.5.240.0170.08020.07

preferences:
56.35 ms | 400 KiB | 5 Q