3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo showtest(); function showtest() { $output = ""; for ($i=1; $i < 500; $i++) { echo "adfadsf"; echo 3+4+5; echo "adfadsf2"; echo 3+4+5+6; echo "adfadsf3"; echo 3+4+5+7; echo "adfadsf4"; echo 3+4+5+8; echo "adfadsf5"; echo 3+4+5+9; /* $output .= "adfadsf"; $output .= 3+4+5; $output .= "adfadsf2"; $output .= 3+4+5+6; $output .= "adfadsf3"; $output .= 3+4+5+7; $output .= "adfadsf4"; $output .= 3+4+5+8; $output .= "adfadsf5"; $output .= 3+4+5+9; */ } echo $output; return output; }

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.00616.62
8.3.50.0210.00822.04
8.3.40.0170.00718.79
8.3.30.0130.01018.67
8.3.20.0250.00320.15
8.3.10.0080.00423.61
8.3.00.0060.00619.26
8.2.180.0170.01318.46
8.2.170.0160.01222.96
8.2.160.0170.00722.26
8.2.150.0030.00924.18
8.2.140.0090.00324.66
8.2.130.0110.00417.38
8.2.120.0120.00026.35
8.2.110.0140.00022.08
8.2.100.0080.00817.93
8.2.90.0080.00319.26
8.2.80.0030.00617.97
8.2.70.0000.01017.50
8.2.60.0060.00617.93
8.2.50.0100.00018.07
8.2.40.0110.00319.35
8.2.30.0060.00320.54
8.2.20.0080.00417.81
8.2.10.0030.00618.11
8.2.00.0100.00018.18
8.1.280.0190.01325.92
8.1.270.0080.00822.20
8.1.260.0190.00428.09
8.1.250.0170.00728.09
8.1.240.0150.00020.63
8.1.230.0100.00617.66
8.1.220.0030.00617.79
8.1.210.0070.00418.77
8.1.200.0060.00617.47
8.1.190.0030.00617.23
8.1.180.0100.00018.10
8.1.170.0070.00319.98
8.1.160.0050.00522.07
8.1.150.0070.00318.89
8.1.140.0030.00719.46
8.1.130.0030.00617.71
8.1.120.0030.00717.40
8.1.110.0110.00317.49
8.1.100.0070.00317.46
8.1.90.0030.00717.42
8.1.80.0100.00017.49
8.1.70.0030.00617.45
8.1.60.0070.00317.55
8.1.50.0070.00317.43
8.1.40.0030.00617.47
8.1.30.0070.00417.71
8.1.20.0030.00717.50
8.1.10.0090.00017.56
8.1.00.0030.00817.44
8.0.300.0060.00318.77
8.0.290.0030.00616.75
8.0.280.0000.01018.46
8.0.270.0030.00617.23
8.0.260.0040.00417.30
8.0.250.0040.00716.94
8.0.240.0000.00917.02
8.0.230.0000.00916.99
8.0.220.0090.00017.00
8.0.210.0040.00416.99
8.0.200.0060.00316.89
8.0.190.0060.00317.01
8.0.180.0060.00316.88
8.0.170.0030.00616.86
8.0.160.0000.01017.03
8.0.150.0000.01016.86
8.0.140.0000.00916.84
8.0.130.0050.00313.35
8.0.120.0030.00716.87
8.0.110.0030.00616.87
8.0.100.0000.00916.90
8.0.90.0040.00416.92
8.0.80.0100.01316.95
8.0.70.0000.01016.99
8.0.60.0000.01016.79
8.0.50.0030.00616.75
8.0.30.0260.00817.23
8.0.20.0270.01417.40
8.0.10.0100.00016.86
8.0.00.0200.01516.78
7.4.330.0030.00515.08
7.4.320.0080.00016.62
7.4.300.0050.00316.55
7.4.290.0030.00616.53
7.4.280.0110.00016.55
7.4.270.0060.00316.45
7.4.260.0030.00616.49
7.4.250.0040.00716.43
7.4.240.0050.00516.43
7.4.230.0040.00416.59
7.4.220.0170.01216.71
7.4.210.0210.00616.53
7.4.200.0060.00316.57
7.4.160.0250.01116.34
7.4.150.0250.00917.40
7.4.140.0240.01317.86
7.4.130.0270.01116.59
7.4.120.0260.01016.63
7.4.110.0250.01216.69
7.4.100.0220.01316.57
7.4.90.0210.01216.54
7.4.80.0110.01819.39
7.4.70.0230.00716.45
7.4.60.0190.00916.73
7.4.50.0070.01416.37
7.4.40.0160.02516.44
7.4.30.0140.01816.60
7.4.00.0070.01415.26
7.3.330.0040.00413.18
7.3.320.0050.00213.37
7.3.310.0090.00016.39
7.3.300.0080.00016.23
7.3.290.0110.01516.32
7.3.280.0190.01316.44
7.3.270.0230.02917.40
7.3.260.0220.01416.42
7.3.250.0210.01816.54
7.3.240.0240.01516.58
7.3.230.0260.02216.39
7.3.210.0190.01316.44
7.3.200.0260.01316.34
7.3.190.0180.01316.47
7.3.180.0120.01516.48
7.3.170.0060.02216.39
7.3.160.0190.01316.41
7.2.330.0280.00616.70
7.2.320.0180.01316.60
7.2.310.0130.01416.85
7.2.300.0220.00916.70
7.2.290.0200.01816.36
7.2.60.0140.00416.50
7.2.00.0320.01619.50
7.1.200.0030.01315.82
7.1.100.0130.00718.21
7.1.70.0030.00617.11
7.1.60.0130.01719.48
7.1.50.0130.01716.64
7.1.00.0100.07322.52
7.0.200.0490.00714.96
7.0.60.0100.05320.00
7.0.50.0100.06717.85
7.0.40.0070.08720.27
7.0.30.0170.04720.23
7.0.20.0370.07720.19
7.0.10.0130.07320.12
7.0.00.0100.08320.35
5.6.280.0070.07321.13
5.6.210.0070.04020.63
5.6.200.0070.07318.18
5.6.190.0030.04720.57
5.6.180.0200.06020.52
5.6.170.0330.07320.39
5.6.160.0130.08020.50
5.6.150.0170.05018.25
5.6.140.0030.08718.24
5.6.130.0030.06718.14
5.6.120.0030.09721.02
5.6.110.0070.04721.05
5.6.100.0070.07720.96
5.6.90.0070.09021.10
5.6.80.0000.09020.51
5.5.350.4170.04020.53
5.5.340.0070.08318.09
5.5.330.0100.04020.31
5.5.320.0370.08020.33
5.5.310.0270.08020.34
5.5.300.0100.03717.95
5.5.290.0000.04318.07
5.5.280.0070.05320.95
5.5.270.0130.08020.84
5.5.260.0070.08320.97
5.5.250.0170.07320.62
5.5.240.0230.07320.28

preferences:
58.02 ms | 401 KiB | 5 Q