3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Foo; for ($i=0; $i<10; $i++){ echo $i." : ".strlen($i)."\n"; if ($i==5){ function strlen($x){return "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.4.120.0150.00423.87
8.4.110.0110.00918.92
8.4.100.0140.00618.67
8.4.90.0130.00720.46
8.4.80.0110.00818.77
8.4.70.0100.00918.62
8.4.60.0100.00418.91
8.4.50.0110.00718.68
8.4.40.0100.01017.80
8.4.30.0060.01320.50
8.4.20.0100.01017.86
8.4.10.0060.00322.15
8.3.250.0110.00619.12
8.3.240.0070.01217.30
8.3.230.0110.00816.67
8.3.220.0080.00918.93
8.3.210.0070.01016.73
8.3.200.0040.00516.66
8.3.190.0100.00917.17
8.3.180.0090.00818.73
8.3.170.0120.00616.59
8.3.160.0100.00718.87
8.3.150.0130.00616.35
8.3.140.0070.00319.16
8.3.130.0090.00018.44
8.3.120.0030.00518.88
8.3.110.0000.00820.94
8.3.100.0060.00324.06
8.3.90.0110.00726.77
8.3.80.0030.00717.97
8.3.70.0090.00618.55
8.3.60.0140.00716.63
8.3.50.0070.01118.40
8.3.40.0110.00421.91
8.3.30.0030.01418.86
8.3.20.0040.00424.18
8.3.10.0070.00024.66
8.3.00.0070.00026.16
8.2.290.0060.00220.44
8.2.280.0090.01018.60
8.2.270.0120.00616.59
8.2.260.0060.01316.46
8.2.250.0080.00016.65
8.2.240.0030.00618.84
8.2.230.0090.00022.58
8.2.220.0060.01037.54
8.2.210.0100.01026.77
8.2.200.0030.00616.50
8.2.190.0090.00916.75
8.2.180.0110.00716.75
8.2.170.0120.00318.96
8.2.160.0110.00322.96
8.2.150.0000.00725.66
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0050.00319.54
8.2.110.0040.00722.29
8.2.100.0160.00017.65
8.2.90.0350.00017.63
8.2.80.0280.00817.49
8.2.70.0290.00417.38
8.2.60.0260.00717.25
8.2.50.0310.00317.13
8.2.40.0310.00617.63
8.2.30.0290.00317.38
8.2.20.0260.00617.63
8.2.10.0320.00017.38
8.2.00.0300.00617.25
8.1.330.0120.00822.04
8.1.320.0120.00716.30
8.1.310.0120.00615.89
8.1.300.0080.00018.45
8.1.290.0070.00430.84
8.1.280.0050.00925.92
8.1.270.0070.00024.66
8.1.260.0080.00026.35
8.1.250.0000.00828.09
8.1.240.0030.00622.19
8.1.230.0060.00619.14
8.1.220.0270.00017.25
8.1.210.0260.00517.13
8.1.200.0270.00717.13
8.1.190.0150.01317.11
8.1.180.0240.00617.11
8.1.170.0280.00317.13
8.1.160.0240.00617.00
8.1.150.0260.00517.25
8.1.140.0260.00516.88
8.1.130.0180.01117.38
8.1.120.0310.00017.13
8.1.110.0250.00317.25
8.1.100.0220.00617.11
8.1.90.0190.00917.22
8.1.80.0210.00817.13
8.1.70.0220.00317.51
8.1.60.0160.01117.13
8.1.50.0210.00717.25
8.1.40.0260.00317.25
8.1.30.0220.00417.66
8.1.20.0220.00417.63
8.1.10.0180.00916.88
8.1.00.0160.01317.11
8.0.300.0270.00216.80
8.0.290.0160.01316.80
8.0.280.0220.00816.80
8.0.270.0250.00616.80
8.0.260.0250.00416.80
8.0.250.0230.01016.80
8.0.240.0330.00016.80
8.0.230.0220.00516.80
8.0.220.0260.00316.80
8.0.210.0250.00416.80
8.0.200.0200.00316.80
8.0.190.0210.00816.80
8.0.180.0210.00616.80
8.0.170.0220.00716.80
8.0.160.0310.00016.80
8.0.150.0230.00516.80
8.0.140.0180.01016.80
8.0.130.0190.00816.80
8.0.120.0180.00916.80
8.0.110.0120.01316.80
8.0.100.0240.00416.80
8.0.90.0230.00616.80
8.0.80.0200.00517.96
8.0.70.0270.00316.80
8.0.60.0230.00616.80
8.0.50.0250.00416.80
8.0.30.0200.00416.80
8.0.20.0240.00316.80
8.0.10.0290.00016.80
5.6.400.0110.00716.80
5.4.450.0100.00316.80
5.3.290.0060.00616.80
5.3.80.0080.00316.80

preferences:
28.61 ms | 403 KiB | 5 Q