3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array(1,2,3,4,5,6,7,8,9,10,'a','b','c','d','e','f','g','h','i','j'); for($i=0;$i<count($arr);$i++){ echo("loop "); $tmp = $arr[$i+10]; $arr[$i+10]=$arr[$i+1]; $arr[$i+1]=$tmp; } echo("\n"); for($i=0;$i<count($arr);$i++){ echo($arr[$i]." "); } ?>

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.0110.00718.31
8.3.50.0300.01122.01
8.3.40.0230.00318.83
8.3.30.0190.00319.09
8.3.20.0180.00420.34
8.3.10.0130.00722.05
8.3.00.0110.00022.29
8.2.180.0130.00616.75
8.2.170.0230.00022.96
8.2.160.0070.01120.79
8.2.150.0070.00324.18
8.2.140.0110.00024.66
8.2.130.0060.00626.16
8.2.120.0120.00019.24
8.2.110.0070.00721.04
8.2.100.0080.00817.97
8.2.90.0030.00619.39
8.2.80.0050.00517.97
8.2.70.0090.00017.50
8.2.60.0000.00818.05
8.2.50.0040.00418.07
8.2.40.0040.00418.34
8.2.30.0070.00318.15
8.2.20.0080.00017.83
8.2.10.0000.01117.91
8.2.00.0150.00717.96
8.1.280.0100.00725.92
8.1.270.0110.00023.99
8.1.260.0040.00826.35
8.1.250.0110.00028.09
8.1.240.0140.00022.65
8.1.230.0100.00617.52
8.1.220.0060.00317.78
8.1.210.0060.00318.77
8.1.200.0030.00717.35
8.1.190.0000.00817.35
8.1.180.0170.00018.10
8.1.170.0040.00818.63
8.1.160.0000.00822.01
8.1.150.0030.00518.79
8.1.140.0050.00517.53
8.1.130.0000.00717.80
8.1.120.0000.00817.61
8.1.110.0060.00617.59
8.1.100.0060.00617.58
8.1.90.0030.00717.54
8.1.80.0050.00317.56
8.1.70.0060.00317.50
8.1.60.0060.00317.69
8.1.50.0060.00317.54
8.1.40.0090.00017.51
8.1.30.0000.01117.71
8.1.20.0000.00917.62
8.1.10.0050.00517.77
8.1.00.0070.00317.66
8.0.300.0040.00418.77
8.0.290.0030.00616.75
8.0.280.0030.00518.37
8.0.270.0000.00717.24
8.0.260.0040.00416.88
8.0.250.0060.00316.91
8.0.240.0110.00416.95
8.0.230.0000.00716.83
8.0.220.0030.00516.87
8.0.210.0080.00016.92
8.0.200.0000.00616.86
8.0.190.0030.00616.84
8.0.180.0060.00316.90
8.0.170.0000.02117.01
8.0.160.0000.01016.98
8.0.150.0040.00416.80
8.0.140.0050.00516.93
8.0.130.0070.00013.46
8.0.120.0000.00816.86
8.0.110.0050.00516.79
8.0.100.0000.00816.91
8.0.90.0040.00416.74
8.0.80.0150.01116.95
8.0.70.0050.00316.74
8.0.60.0040.00416.73
8.0.50.0060.00316.94
8.0.30.0190.01417.05
8.0.20.0180.01317.40
8.0.10.0050.00216.97
8.0.00.0350.01016.72
7.4.330.0000.00615.13
7.4.320.0030.00616.51
7.4.300.0000.00816.35
7.4.290.0000.00716.42
7.4.280.0040.00416.43
7.4.270.0070.00316.52
7.4.260.0130.00016.44
7.4.250.0000.00916.45
7.4.240.0030.00516.40
7.4.230.0030.00816.45
7.4.220.0140.01416.45
7.4.210.0160.00616.49
7.4.200.0040.00416.61
7.4.190.0040.00416.64
7.4.160.0230.00616.61
7.4.150.0470.01017.40
7.4.140.0310.01317.86
7.4.130.0190.01416.40
7.4.120.0340.01116.52
7.4.110.0130.02016.60
7.4.100.0260.02816.69
7.4.90.0410.01516.46
7.4.80.0180.01719.39
7.4.70.0170.01416.40
7.4.60.0230.00416.58
7.4.50.0080.00316.43
7.4.40.0100.01022.77
7.4.30.0150.01816.52
7.4.00.0080.00814.83
7.3.330.0090.00013.34
7.3.320.0060.00313.39
7.3.310.0030.00616.37
7.3.300.0000.01016.28
7.3.290.0030.01816.48
7.3.280.0140.01116.34
7.3.270.0390.01917.40
7.3.260.0510.00716.60
7.3.250.0270.02316.32
7.3.240.0160.02616.59
7.3.230.0240.01016.47
7.3.210.0170.01016.38
7.3.200.0100.03019.39
7.3.190.0060.03216.45
7.3.180.0250.02616.52
7.3.170.0280.01516.66
7.3.160.0350.00916.39
7.3.120.0150.00715.01
7.2.330.0640.01016.57
7.2.320.0430.01716.38
7.2.310.0340.02116.41
7.2.300.0140.00716.43
7.2.290.0110.01116.57
7.2.00.0030.01419.54
7.1.100.0050.00818.14
7.1.70.0100.01016.92
7.1.60.0070.02019.82
7.1.50.0120.00917.05
7.0.200.0030.00616.88

preferences:
53.99 ms | 401 KiB | 5 Q