3v4l.org

run code in 300+ PHP versions simultaneously
<?php //$files = glob("images/*.{gif,jpg,jpeg,png}", GLOB_BRACE); $files = [ 'foo.jpg', 'foo1.png', 'foo2.png', 'foo3.png', 'foo4.png', 'foo5.png', 'foo6.png', 'foo7.png', 'foo8.png', 'foo9.png', 'foo10.png' ]; foreach ($files as $key => $file) { if ($key % 3 == 0) { // change 3 to how many items between rows if ($key != 0) { echo '</div>'.PHP_EOL; } echo '<div class="row">'.PHP_EOL; } echo '<div class="column"><img src="'.$file.'" style=width:100% /></div>'.PHP_EOL; } ?> </div>

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.70.0140.00316.63
8.3.60.0090.00918.27
8.3.50.0090.00718.12
8.3.40.0080.00818.46
8.3.30.0100.00718.71
8.3.20.0040.00421.98
8.3.10.0040.00423.48
8.3.00.0060.00322.02
8.2.190.0090.00616.58
8.2.180.0150.00318.32
8.2.170.0130.00922.96
8.2.160.0100.00320.53
8.2.150.0040.00424.18
8.2.140.0000.00724.66
8.2.130.0040.00426.16
8.2.120.0060.00319.77
8.2.110.0030.00620.89
8.2.100.0110.00019.21
8.2.90.0000.00817.97
8.2.80.0030.00620.55
8.2.70.0050.00317.93
8.2.60.0040.00417.63
8.2.50.0000.00918.10
8.2.40.0040.00420.47
8.2.30.0040.00420.62
8.2.20.0020.00517.93
8.2.10.0050.00318.04
8.2.00.0000.00718.08
8.1.280.0140.00425.92
8.1.270.0000.00821.99
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0090.00022.18
8.1.230.0090.00322.73
8.1.220.0030.00717.79
8.1.210.0050.00319.04
8.1.200.0000.01017.23
8.1.190.0040.00417.23
8.1.180.0040.00418.10
8.1.170.0000.00818.72
8.1.160.0000.00818.87
8.1.150.0070.00020.13
8.1.140.0040.00417.70
8.1.130.0040.00419.05
8.1.120.0000.00717.46
8.1.110.0040.00417.39
8.1.100.0030.00517.41
8.1.90.0000.00717.40
8.1.80.0040.00417.35
8.1.70.0030.00317.34
8.1.60.0050.00317.61
8.1.50.0100.00017.54
8.1.40.0040.00417.46
8.1.30.0000.01117.69
8.1.20.0040.00417.66
8.1.10.0080.00017.41
8.1.00.0070.00317.54
8.0.300.0030.00520.10
8.0.290.0000.00716.75
8.0.280.0000.00718.43
8.0.270.0030.00617.29
8.0.260.0070.00316.86
8.0.250.0050.00316.95
8.0.240.0080.00016.96
8.0.230.0000.00716.97
8.0.220.0030.00316.76
8.0.210.0000.00716.75
8.0.200.0040.00416.95
8.0.190.0030.00716.90
8.0.180.0070.00016.97
8.0.170.0090.00016.91
8.0.160.0030.00316.82
8.0.150.0040.00416.76
8.0.140.0000.00816.73
8.0.130.0000.00613.40
8.0.120.0040.00416.86
8.0.110.0000.00716.93
8.0.100.0000.00716.78
8.0.90.0020.00516.90
8.0.80.0120.00816.88
8.0.70.0040.00416.79
8.0.60.0070.00016.77
8.0.50.0000.00716.93
8.0.30.0100.01016.96
8.0.20.0100.00917.40
8.0.10.0040.00417.01
8.0.00.0070.01016.81
7.4.330.0040.00415.55
7.4.320.0040.00416.65
7.4.300.0030.00316.55
7.4.290.0000.00716.49
7.4.280.0040.00416.49
7.4.270.0000.00916.39
7.4.260.0040.00416.50
7.4.250.0070.00016.51
7.4.240.0070.00016.50
7.4.230.0040.00416.61
7.4.220.0070.00016.60
7.4.210.0130.00316.57
7.4.200.0000.00716.41
7.4.140.0070.01217.86
7.4.130.0120.00616.32
7.4.120.0110.00816.56
7.4.110.0130.00616.51
7.4.100.0070.01016.34
7.4.90.0150.00316.57
7.4.80.0000.01919.39
7.4.70.0110.00716.55
7.4.60.0100.01016.41
7.4.50.0110.00016.36
7.4.40.0040.01216.56
7.4.00.0080.00315.01
7.3.330.0030.00312.96
7.3.320.0000.00513.16
7.3.310.0040.00416.05
7.3.300.0000.00616.13
7.3.290.0070.00016.24
7.3.280.0060.00916.27
7.3.260.0130.00816.37
7.3.240.0110.00916.36
7.3.230.0050.01116.46
7.3.210.0070.01516.27
7.3.200.0100.01316.32
7.3.190.0080.00816.47
7.3.180.0160.00016.41
7.3.170.0100.01016.56
7.3.160.0070.01016.61
7.3.120.0060.01214.73
7.3.110.0030.01314.91
7.3.100.0040.01414.36
7.3.90.0070.01014.49
7.3.80.0120.00014.97
7.3.70.0030.00614.88
7.3.60.0090.00914.88
7.3.50.0110.00314.91
7.3.40.0080.00314.86
7.3.30.0090.00614.70
7.3.20.0070.00316.61
7.3.10.0090.00516.51
7.3.00.0060.00616.49
7.2.330.0060.01216.67
7.2.320.0080.00816.62
7.2.310.0100.00716.80
7.2.300.0130.01016.73
7.2.290.0070.01316.59
7.2.250.0070.01414.89
7.2.240.0060.01115.00
7.2.230.0130.00715.15
7.2.220.0130.00314.82
7.2.210.0060.00915.10
7.2.200.0030.00714.73
7.2.190.0040.01215.02
7.2.180.0060.00914.97
7.2.170.0030.00915.06
7.2.130.0080.00716.94
7.2.120.0100.00316.72
7.2.110.0060.00916.90
7.2.100.0040.00616.74
7.2.90.0090.00716.77
7.2.80.0060.00916.80
7.2.70.0080.00716.65
7.2.60.0060.00916.67
7.2.50.0090.00516.78
7.2.40.0110.00516.79
7.2.30.0100.00717.91
7.2.20.0060.00717.38
7.2.10.0070.01017.46
7.2.00.0120.00817.08
7.1.330.0030.01215.67
7.1.320.0000.01115.73
7.1.310.0060.00915.87
7.1.300.0120.00315.90
7.1.290.0030.00915.80
7.1.280.0030.00915.63
7.1.270.0090.00615.57
7.1.260.0060.00915.71
7.1.250.0090.00615.55
7.1.200.0030.01015.39
7.1.150.0200.01316.86
7.1.140.0110.01018.91
7.1.130.0120.00818.65
7.1.120.0150.01516.85
7.1.110.0050.01818.09
7.1.100.0170.00716.07
7.1.90.0150.01117.61
7.1.80.0080.01517.88
7.1.70.0060.01517.18
7.1.60.0360.01534.97
7.1.50.0940.01534.83
7.1.40.1050.01534.32
7.1.30.0450.01632.59
7.1.20.0450.01732.52
7.1.10.0090.01614.72
7.1.00.0110.01416.30

preferences:
18.38 ms | 401 KiB | 5 Q