3v4l.org

run code in 300+ PHP versions simultaneously
<?php function loadZoneDefintion() { // initial stuff $i = 1; $limit = 9; $array = array("A","B","C","D","E","F","G","H","I","J","K","L"); // foreach xml file/zone definition foreach ($array as $value) { // if counter is less than limit if ($i < $limit) { // foreach loops // process curl request echo "Counter: " . $i . ", Value: " . $value . " | "; // increment counter $i++; } // if counter has reached the limit else { echo "[PAUSE]"; $now = time(); $nowText = date("g:h:s", $now); $future = strtotime("+5 hours", $now); $futureText = date("g:h:s", $future); echo "Now: " . $nowText; echo "Future: " . $futureText; // pause script due to rate limit //sleep(10); //time_sleep_until(); // reset counter $i = 1; echo "[RESET]"; } } } loadZoneDefintion();

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)
7.4.10.0050.01415.17
7.4.00.0100.00615.17
7.3.130.0030.01214.94
7.3.120.0060.01115.11
7.3.110.0030.01215.11
7.3.100.0070.00715.15
7.3.90.0050.00715.08
7.3.80.0060.00615.17
7.3.70.0020.01215.05
7.3.60.0030.01115.06
7.3.50.0060.00715.12
7.3.40.0060.00814.84
7.3.30.0060.00815.05
7.3.20.0070.00716.83
7.3.10.0080.00816.91
7.3.00.0080.00616.90
7.2.260.0100.00715.35
7.2.250.0070.01215.31
7.2.240.0090.00715.34
7.2.230.0060.01015.22
7.2.220.0040.01115.38
7.2.210.0060.00915.03
7.2.200.0050.01015.33
7.2.190.0040.00915.29
7.2.180.0050.01115.24
7.2.170.0030.01015.29
7.2.160.0030.01115.43
7.2.150.0060.00617.11
7.2.140.0070.01217.15
7.2.130.0100.00517.09
7.2.120.0030.00917.09
7.2.110.0060.00817.15
7.2.100.0070.00716.96
7.2.90.0060.00817.07
7.2.80.0050.00817.05
7.2.70.0080.00717.06
7.2.60.0060.00817.10
7.2.50.0090.00717.12
7.2.40.0050.01117.11
7.2.30.0100.00617.10
7.2.20.0110.00717.02
7.2.10.0090.00817.04
7.2.00.0070.00517.70
7.1.330.0080.00616.17
7.1.320.0040.00815.98
7.1.310.0060.00715.95
7.1.300.0030.00915.99
7.1.290.0070.00716.00
7.1.280.0070.00616.12
7.1.270.0060.00415.94
7.1.260.0050.01115.92
7.1.250.0060.00815.86
7.1.240.0070.00715.83
7.1.230.0030.00815.92
7.1.220.0030.00815.83
7.1.210.0060.00815.94
7.1.200.0050.00915.91
7.1.190.0090.00316.08
7.1.180.0090.00715.90
7.1.170.0040.00915.91
7.1.160.0100.00416.00
7.1.150.0050.01015.75
7.1.140.0070.00815.92
7.1.130.0030.01116.00
7.1.120.0070.00915.93
7.1.110.0080.00516.09
7.1.100.0080.00716.60
7.1.90.0020.01316.03
7.1.80.0070.00816.06
7.1.70.0050.00916.25
7.1.60.0080.01116.87
7.1.50.0090.00916.24
7.1.40.0050.00816.04
7.1.30.0060.00915.97
7.1.20.0050.00815.87
7.1.10.0100.00715.96
7.1.00.0060.02317.61
7.0.330.0010.00815.54
7.0.320.0040.00615.38
7.0.310.0070.00715.47
7.0.300.0080.00815.50
7.0.290.0060.01015.29
7.0.280.0070.00815.54
7.0.270.0100.00715.54
7.0.260.0080.00715.46
7.0.250.0050.00815.53
7.0.240.0070.00615.69
7.0.230.0060.00915.58
7.0.220.0040.00815.45
7.0.210.0060.00915.43
7.0.200.0050.00815.98
7.0.190.0080.00615.51
7.0.180.0080.00515.49
7.0.170.0050.01015.46
7.0.160.0090.00615.60
7.0.150.0060.00715.48
7.0.140.0070.02117.11
7.0.130.0070.00615.59
7.0.120.0020.01215.61
7.0.110.0030.01115.63
7.0.100.0060.01916.64
7.0.90.0070.02016.65
7.0.80.0120.02016.62
7.0.70.0080.01916.58
7.0.60.0120.01316.69
7.0.50.0090.02416.75
7.0.40.0090.01515.17
7.0.30.0060.02615.34
7.0.20.0050.01615.32
7.0.10.0050.01515.34
7.0.00.0080.01615.38
5.6.400.0030.01414.63
5.6.390.0030.01014.49
5.6.380.0050.00814.50
5.6.370.0060.00814.44
5.6.360.0070.00714.20
5.6.350.0050.01014.38
5.6.340.0070.00614.53
5.6.330.0060.00914.46
5.6.320.0040.00914.46
5.6.310.0040.01014.38
5.6.300.0100.00614.39
5.6.290.0070.00814.31
5.6.280.0040.02516.17
5.6.270.0060.00914.37
5.6.260.0060.00814.41
5.6.250.0080.02415.92
5.6.240.0090.02115.90
5.6.230.0110.02315.97
5.6.220.0030.03015.97
5.6.210.0080.02016.01
5.6.200.0100.01616.12
5.6.190.0060.02815.97
5.6.180.0120.02216.03
5.6.170.0070.02016.00
5.6.160.0060.01416.19
5.6.150.0050.01816.07
5.6.140.0060.01516.12
5.6.130.0060.01616.16
5.6.120.0050.01716.13
5.6.110.0070.01516.07
5.6.100.0060.01715.95
5.6.90.0040.01916.13
5.6.80.0060.02415.89
5.6.70.0040.02815.93
5.6.60.0080.01415.87
5.6.50.0060.01715.77
5.6.40.0050.02115.84
5.6.30.0050.01515.92
5.6.20.0060.01415.82
5.6.10.0040.01415.84
5.6.00.0100.01915.94
5.5.380.0070.02215.12
5.5.370.0100.02215.10
5.5.360.0070.01615.17
5.5.350.0060.01715.06
5.5.340.0030.02715.32
5.5.330.0030.02615.19
5.5.320.0060.01815.14
5.5.310.0070.01815.17
5.5.300.0050.01515.24
5.5.290.0040.01815.27
5.5.280.0030.01815.38
5.5.270.0080.01215.17
5.5.260.0080.01715.30
5.5.250.0040.01715.11
5.5.240.0040.01615.09
5.5.230.0040.01514.98
5.5.220.0050.02414.98
5.5.210.0050.02014.91
5.5.200.0060.01314.98
5.5.190.0040.01514.96
5.5.180.0030.01815.02
5.5.170.0030.00813.33
5.5.160.0070.01115.02
5.5.150.0040.01514.99
5.5.140.0050.01215.09
5.5.130.0030.01514.90
5.5.120.0040.01915.07
5.5.110.0050.01515.03
5.5.100.0030.01715.04
5.5.90.0020.01715.03
5.5.80.0040.01715.01
5.5.70.0040.01414.84
5.5.60.0040.01514.97
5.5.50.0020.01715.00
5.5.40.0040.01214.81
5.5.30.0040.01414.97
5.5.20.0030.01514.94
5.5.10.0070.01314.97
5.5.00.0060.01415.02
5.4.450.0030.01514.53
5.4.440.0030.01714.47
5.4.430.0020.01714.50
5.4.420.0040.01514.59
5.4.410.0060.01714.55
5.4.400.0070.02114.36
5.4.390.0030.01414.46
5.4.380.0050.01214.41
5.4.370.0050.01314.48
5.4.360.0030.01814.46
5.4.350.0040.01414.38
5.4.340.0030.01314.42
5.4.330.0040.00412.90
5.4.320.0030.01214.43
5.4.310.0030.01814.45
5.4.300.0060.01114.40
5.4.290.0040.01214.33
5.4.280.0060.01114.50
5.4.270.0040.01214.44
5.4.260.0050.01214.45
5.4.250.0030.01414.49
5.4.240.0020.01614.41
5.4.230.0020.01614.35
5.4.220.0070.01214.44
5.4.210.0030.01214.37
5.4.200.0050.01214.44
5.4.190.0030.01614.41
5.4.180.0050.01214.52
5.4.170.0040.01314.44
5.4.160.0040.01414.48
5.4.150.0050.01114.35
5.4.140.0060.01313.77
5.4.130.0060.02113.76
5.4.120.0040.01613.72
5.4.110.0040.01813.71
5.4.100.0030.02313.63
5.4.90.0050.01913.70
5.4.80.0050.01513.80
5.4.70.0050.02213.72
5.4.60.0030.01413.78
5.4.50.0060.01713.70
5.4.40.0040.02013.75
5.4.30.0110.01113.75
5.4.20.0040.02113.79
5.4.10.0060.02213.83
5.4.00.0060.01613.64
5.3.290.0040.01413.28
5.3.280.0030.01513.26
5.3.270.0030.01313.24
5.3.260.0050.01313.27
5.3.250.0040.01413.25
5.3.240.0040.02413.25
5.3.230.0060.02313.23
5.3.220.0050.01113.20
5.3.210.0060.02313.12
5.3.200.0030.01613.18
5.3.190.0040.01913.17
5.3.180.0050.02213.26
5.3.170.0070.02013.24
5.3.160.0060.01413.25
5.3.150.0040.02513.26
5.3.140.0080.01913.21
5.3.130.0010.02213.13
5.3.120.0070.01513.14
5.3.110.0050.01913.16
5.3.100.0050.01513.08
5.3.90.0060.02113.10
5.3.80.0020.02313.05
5.3.70.0040.02213.01
5.3.60.0040.01713.12
5.3.50.0050.02413.04
5.3.40.0040.02313.04
5.3.30.0050.02213.05
5.3.20.0030.01512.93
5.3.10.0020.02212.95
5.3.00.0030.02012.95
5.2.170.0070.03010.54
5.2.160.0050.03210.52
5.2.150.0060.03210.56
5.2.140.0040.03510.60
5.2.130.0030.02310.53
5.2.120.0030.03110.57
5.2.110.0070.03010.57
5.2.100.0020.02510.58
5.2.90.0050.03210.53
5.2.80.0030.03510.57
5.2.70.0030.03710.56
5.2.60.0040.03410.58
5.2.50.0070.02510.60
5.2.40.0050.03010.52
5.2.30.0050.03310.53
5.2.20.0030.03310.46
5.2.10.0070.02510.46
5.2.00.0030.02810.46
5.1.60.0020.02910.46
5.1.50.0080.01810.46
5.1.40.0040.02910.46
5.1.30.0040.03010.46
5.1.20.0060.02210.46
5.1.10.0030.02510.46
5.1.00.0060.02410.46
5.0.50.0010.02610.46
5.0.40.0030.01410.46
5.0.30.0030.03210.46
5.0.20.0020.02410.46
5.0.10.0060.02010.46
5.0.00.0050.02010.46
4.4.90.0020.01810.46
4.4.80.0020.01410.46
4.4.70.0050.01810.46
4.4.60.0020.02210.46
4.4.50.0030.01710.46
4.4.40.0030.02610.46
4.4.30.0000.01810.46
4.4.20.0030.01510.46
4.4.10.0030.01810.46
4.4.00.0020.03010.46
4.3.110.0010.01810.46
4.3.100.0050.01010.46
4.3.90.0050.01310.46
4.3.80.0020.01910.46
4.3.70.0010.02110.46
4.3.60.0060.01310.46
4.3.50.0020.01710.46
4.3.40.0060.02610.46
4.3.30.0000.02210.46
4.3.20.0010.01810.46
4.3.10.0020.02010.46
4.3.00.0020.01710.46

preferences:
41.58 ms | 400 KiB | 5 Q