3v4l.org

run code in 300+ PHP versions simultaneously
<?php $page = 1; $hasMore = true; $mockAfterThisCallsStop = 4; scrape: { if ($hasMore) { //... echo 'scrapping api page:'.$page.PHP_EOL; // do curl // check result if($page >= $mockAfterThisCallsStop) { $hasMore = false; } else { // fill vars for next iteration $page++; } goto scrape; } else { goto done; } } done: { echo 'All done...'; }

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.130.0100.01017.83
8.4.120.0100.01022.20
8.4.110.0130.00618.89
8.4.100.0050.00717.69
8.4.90.0140.00620.64
8.4.80.0120.00720.74
8.4.70.0110.00818.84
8.4.60.0110.01020.45
8.4.50.0060.00319.37
8.4.40.0000.00917.82
8.4.30.0160.00318.81
8.4.20.0030.01318.58
8.4.10.0040.00421.95
8.3.260.0100.00916.72
8.3.250.0110.00918.70
8.3.240.0130.00617.27
8.3.230.0100.00816.97
8.3.220.0090.01019.13
8.3.210.0130.00316.47
8.3.200.0040.00716.61
8.3.190.0040.00519.10
8.3.180.0120.00318.18
8.3.170.0140.00317.26
8.3.160.0150.00316.59
8.3.150.0000.01817.13
8.3.140.0150.00416.51
8.3.130.0000.01016.64
8.3.120.0030.00620.74
8.3.110.0040.00416.46
8.3.100.0060.00918.43
8.3.90.0070.01026.77
8.3.80.0040.00716.38
8.3.70.0110.00418.55
8.3.60.0150.00018.39
8.3.50.0040.01120.18
8.3.40.0060.00920.52
8.3.30.0000.01518.59
8.3.20.0040.00424.18
8.3.10.0040.00424.66
8.3.00.0070.00726.16
8.2.290.0110.00916.94
8.2.280.0130.00618.39
8.2.270.0180.00016.43
8.2.260.0030.01419.10
8.2.250.0040.00417.04
8.2.240.0030.00618.93
8.2.230.0040.01220.94
8.2.220.0130.00324.06
8.2.210.0040.00426.77
8.2.200.0050.00518.31
8.2.190.0110.00416.58
8.2.180.0150.00025.92
8.2.170.0070.01419.01
8.2.160.0140.00722.96
8.2.150.0040.00425.66
8.2.140.0050.00224.66
8.2.130.0000.00826.16
8.2.120.0070.00026.16
8.2.110.0030.00720.99
8.2.100.0120.00017.84
8.2.90.0000.00817.84
8.2.80.0040.00417.97
8.2.70.0000.00817.61
8.2.60.0090.00017.93
8.2.50.0060.00318.07
8.2.40.0030.00518.16
8.2.30.0040.00418.03
8.2.20.0040.00419.28
8.2.10.0070.00017.98
8.2.00.0050.00519.30
8.1.330.0080.01316.06
8.1.320.0080.01115.81
8.1.310.0100.00718.16
8.1.300.0040.00416.19
8.1.290.0060.00330.84
8.1.280.0150.00325.92
8.1.270.0060.00624.66
8.1.260.0040.00426.35
8.1.250.0060.00328.09
8.1.240.0030.00622.59
8.1.230.0070.00420.97
8.1.220.0000.00817.74
8.1.210.0040.00418.94
8.1.200.0100.00317.36
8.1.190.0000.00817.23
8.1.180.0030.00518.10
8.1.170.0050.00318.67
8.1.160.0040.00418.88
8.1.150.0000.00818.51
8.1.140.0040.00417.43
8.1.130.0000.00818.82
8.1.120.0070.00017.42
8.1.110.0030.00617.36
8.1.100.0040.00417.50
8.1.90.0110.00817.36
8.1.80.0120.00517.29
8.1.70.0080.00817.44
8.1.60.0120.00617.39
8.1.50.0110.00617.43
8.1.40.0060.01117.39
8.1.30.0160.00017.64
8.1.20.0190.00017.63
8.1.10.0090.00517.38
8.1.00.0150.00017.37
8.0.300.0080.00019.94
8.0.290.0000.00816.75
8.0.280.0060.00318.45
8.0.270.0080.00018.00
8.0.260.0000.00618.48
8.0.250.0030.00316.85
8.0.240.0030.00316.94
8.0.230.0110.00416.90
8.0.220.0090.00616.82
8.0.210.0100.00616.91
8.0.200.0080.00816.90
8.0.190.0120.00416.80
8.0.180.0120.00416.88
8.0.170.0080.00316.92
8.0.160.0070.00416.82
8.0.150.0140.00016.77
8.0.140.0000.01216.80
8.0.130.0040.00616.75
8.0.120.0100.00316.84
8.0.110.0090.00616.80
8.0.100.0120.00216.81
8.0.90.0110.00316.91
8.0.80.0050.00516.75
8.0.70.0030.00716.92
8.0.60.0050.00516.78
8.0.50.0170.00016.83
8.0.30.0110.00316.62
8.0.20.0090.00316.90
8.0.10.0070.00916.88
7.4.330.0050.00015.55
7.4.320.0030.00316.44
7.4.300.0130.00316.33
7.4.290.0110.00516.44
7.4.280.0000.01416.40
7.4.270.0040.00816.50
7.4.260.0050.00916.40
7.4.250.0070.00516.52
7.4.240.0000.01016.40
7.4.230.0090.00016.38
7.4.220.0110.00016.12
7.4.210.0120.00016.50
7.4.200.0030.01016.42
7.4.190.0110.00416.50
7.4.180.0070.00716.59
7.4.160.0050.01016.52
7.4.150.0080.00816.31
7.4.140.0080.00816.39
7.4.130.0110.00516.22
7.4.120.0080.00516.43
7.4.110.0120.00316.33
7.4.100.0140.00016.44
7.4.90.0130.00316.44
7.4.80.0060.00616.36
7.4.70.0080.00716.38
7.4.60.0160.00016.48
7.4.50.0100.00616.27
7.4.40.0080.00416.37
7.4.30.0090.00316.42
7.4.20.0040.00716.14
7.4.10.0030.00716.13
7.4.00.0000.01116.37

preferences:
26.93 ms | 403 KiB | 5 Q