3v4l.org

run code in 300+ PHP versions simultaneously
<?php $myPosts = range(1, 10); $i = null; $breakOn = 3; $rowStart = '<div class="row">' . "\n"; $rowEnd = '</div>' . "\n"; $item = ' <div class="item"></div>' . "\n"; while (array_shift($myPosts)) { if ($i === $breakOn) { echo $rowEnd . $rowStart; $breakOn = 5 - $breakOn; $i = 0; } elseif (!$i) { echo $rowStart; } echo $item; ++$i; } if ($i !== null) { echo $rowEnd; }

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.140.0130.00917.37
8.4.130.0150.00518.54
8.4.120.0050.00320.73
8.4.110.0100.00819.63
8.4.100.0050.00417.82
8.4.90.0100.00820.51
8.4.80.0050.00318.55
8.4.70.0090.00418.40
8.4.60.0100.00720.36
8.4.50.0070.00918.44
8.4.40.0180.00317.68
8.4.30.0100.00718.95
8.4.20.0100.01021.29
8.4.10.0170.00818.22
8.3.270.0100.00916.75
8.3.260.0080.01116.74
8.3.250.0100.00916.87
8.3.240.0100.00916.70
8.3.230.0040.00516.63
8.3.220.0120.00618.95
8.3.210.0090.00816.71
8.3.200.0040.00516.78
8.3.190.0130.00517.23
8.3.180.0090.01018.84
8.3.170.0100.01017.38
8.3.160.0090.00918.44
8.3.150.0070.01117.32
8.3.140.0260.01916.05
8.3.130.0260.01916.03
8.3.120.0250.00916.61
8.3.110.0200.00716.62
8.3.100.0210.00016.67
8.3.90.0100.01016.54
8.3.80.0200.00216.27
8.3.70.0210.00016.60
8.3.60.0140.00716.43
8.3.50.0180.00416.53
8.3.40.0070.01117.18
8.3.30.0170.00017.14
8.3.20.0160.00017.21
8.3.10.0110.00517.18
8.3.00.0150.00017.29
8.2.290.0110.00818.72
8.2.280.0100.00920.06
8.2.270.0090.00916.56
8.2.260.0040.00416.46
8.2.250.0150.00416.07
8.2.240.0050.01216.36
8.2.230.0150.00515.97
8.2.220.0140.00516.43
8.2.210.0040.01216.13
8.2.200.0110.00716.21
8.2.190.0140.00416.23
8.2.180.0140.00416.46
8.2.170.0180.00317.28
8.2.160.0150.00317.14
8.2.150.0060.01217.27
8.2.140.0150.00417.32
8.2.130.0140.00517.14
8.2.120.0200.00017.41
8.2.110.0130.00617.46
8.2.100.0160.00317.47
8.2.90.0170.00017.46
8.2.80.0120.00617.31
8.2.70.0120.00417.19
8.2.60.0120.00617.09
8.2.50.0140.00317.40
8.2.40.0120.00417.35
8.2.30.0140.00317.37
8.2.20.0130.00417.41
8.2.10.0160.00016.97
8.2.00.0080.00817.20
8.1.330.0140.00516.14
8.1.320.0040.00616.14
8.1.310.0140.00515.73
8.1.300.0120.00615.71
8.1.290.0100.01015.99
8.1.280.0140.00415.72
8.1.270.0130.00817.16
8.1.260.0180.00017.17
8.1.250.0170.00316.86
8.1.240.0170.00016.96
8.1.230.0040.01317.16
8.1.220.0180.00016.98
8.1.210.0140.00316.80
8.1.200.0070.01416.88
8.1.190.0160.00016.91
8.1.180.0130.00316.88
8.1.170.0130.00217.32
8.1.160.0150.00016.97
8.1.150.0150.00217.04
8.1.140.0130.00216.73
8.1.130.0130.00316.94
8.1.120.0150.00016.80
8.1.110.0160.00017.13
8.1.100.0080.00816.73
8.1.90.0120.00416.82
8.1.80.0110.00517.25
8.1.70.0100.00516.69
8.1.60.0160.00317.12
8.1.50.0140.00417.03
8.1.40.0140.00317.11
8.1.30.0060.01117.04
8.1.20.0150.00617.13
8.1.10.0090.00917.29
8.1.00.0120.00617.09

preferences:
29.1 ms | 403 KiB | 5 Q