3v4l.org

run code in 300+ PHP versions simultaneously
<?php $headerShown = false; // Pretend this is your while loop for($i = 0; $i <= 10; $i++){ // Pretend this is your condition if($i > 5){ if(!$headerShown){ echo '<h2>Header</header>', PHP_EOL; $headerShown = true; } echo $i, PHP_EOL; } }

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.5.10.0140.00616.49
8.5.00.0140.00720.06
8.4.150.0020.00014.05
8.4.140.0130.01017.71
8.4.130.0110.00917.80
8.4.120.0100.01120.59
8.4.110.0120.00922.70
8.4.100.0130.00917.61
8.4.90.0110.00917.64
8.4.80.0070.00518.00
8.4.70.0090.01018.03
8.4.60.0100.01118.57
8.4.50.0070.01117.62
8.4.40.0080.00017.73
8.4.30.0100.01018.91
8.4.20.0100.01019.54
8.4.10.0160.00319.34
8.3.280.0120.00920.03
8.3.270.0120.00816.43
8.3.260.0030.00516.57
8.3.250.0050.00319.04
8.3.240.0110.00916.43
8.3.230.0130.00616.42
8.3.220.0030.00516.99
8.3.210.0090.01016.47
8.3.200.0090.01216.66
8.3.190.0060.00917.36
8.3.180.0110.00916.75
8.3.170.0110.00720.45
8.3.160.0110.00717.23
8.3.150.0120.00617.11
8.3.140.0120.00616.47
8.3.130.0000.01516.45
8.3.120.0080.00020.90
8.3.110.0030.00520.94
8.3.100.0110.00716.46
8.3.90.0040.00426.77
8.3.80.0080.00417.97
8.3.70.0150.00016.75
8.3.60.0150.00925.92
8.3.50.0140.01025.92
8.3.40.0200.01625.92
8.3.30.0250.01825.92
8.3.20.0360.01225.92
8.3.10.0280.01525.92
8.3.00.0290.01525.92
8.2.290.0110.00920.65
8.2.280.0080.00718.48
8.2.270.0090.00917.54
8.2.260.0040.00416.44
8.2.250.0060.00318.53
8.2.240.0120.00417.28
8.2.230.0150.00322.58
8.2.220.0090.00924.06
8.2.210.0100.00726.77
8.2.200.0080.00018.54
8.2.190.0090.00616.75
8.2.180.0360.01525.92
8.2.170.0450.00825.92
8.2.160.0440.00425.92
8.2.150.0380.00725.92
8.2.140.0430.01925.92
8.2.130.0310.01025.92
8.2.120.0370.00425.92
8.2.110.0320.00625.92
8.2.100.0280.00725.92
8.2.90.0270.00725.92
8.2.80.0230.01025.92
8.2.70.0320.00325.92
8.2.60.0250.01225.92
8.2.50.0430.00325.92
8.2.40.0330.01425.92
8.2.30.0360.01225.92
8.2.20.0320.00625.92
8.2.10.0360.00925.92
8.2.00.0300.01825.92
8.1.330.0100.00916.84
8.1.320.0120.00715.97
8.1.310.0070.01116.69
8.1.300.0070.00019.98
8.1.290.0100.00030.84
8.1.280.0400.00925.92
8.1.270.0340.01025.92
8.1.260.0330.01625.92
8.1.250.0280.00825.92
8.1.240.0300.00725.92
8.1.230.0270.01225.92
8.1.220.0290.00725.92
8.1.210.0330.00325.92
8.1.200.0200.02025.92
8.1.190.0410.00625.92
8.1.180.0400.01225.92
8.1.170.0320.01125.92
8.1.160.0270.01625.92
8.1.150.0400.00325.92
8.1.140.0280.00825.92
8.1.130.0270.02025.92
8.1.120.0370.00625.92
8.1.110.0370.00525.92
8.1.100.0410.00625.92
8.1.90.0310.01325.92
8.1.80.0360.00925.92
8.1.70.0390.00625.92
8.1.60.0490.00325.92
8.1.50.0560.00325.92
8.1.40.0430.00025.92
8.1.30.0360.00625.92
8.1.20.0330.00725.92
8.1.10.0330.00725.92
8.1.00.0380.00625.92

preferences:
76.48 ms | 403 KiB | 5 Q