3v4l.org

run code in 300+ PHP versions simultaneously
<?php $months = array('Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'); $i = $current_month = 5; do { echo $months[$i] . "\n"; $i = ($i + 1) % 12; } while ($i != $current_month); $year = 2018; $i = $current_month = 5; do { echo $months[$i] . " $year\n"; $i = ($i + 1) % 12; if ($i == 0) $year++; } while ($i != $current_month);

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.110.0070.00720.94
8.3.100.0060.00324.06
8.3.90.0060.00326.77
8.3.80.0070.00416.63
8.3.70.0150.00616.58
8.3.60.0120.00318.05
8.3.50.0100.00717.12
8.3.40.0040.01118.79
8.3.30.0000.01418.70
8.3.20.0070.00021.91
8.3.10.0080.00020.48
8.3.00.0060.00317.75
8.2.230.0080.00022.58
8.2.220.0060.00337.54
8.2.210.0030.00626.77
8.2.200.0030.00616.75
8.2.190.0100.01316.58
8.2.180.0140.00725.92
8.2.170.0140.00719.01
8.2.160.0090.00622.96
8.2.150.0040.00425.66
8.2.140.0110.00724.66
8.2.130.0040.00418.21
8.2.120.0030.00626.35
8.2.110.0100.00021.06
8.2.100.0080.00417.84
8.2.90.0000.00817.84
8.2.80.0040.00419.03
8.2.70.0000.00817.75
8.2.60.0050.00318.04
8.2.50.0060.00318.10
8.2.40.0050.00319.46
8.2.30.0000.00719.23
8.2.20.0000.00818.11
8.2.10.0000.00821.03
8.2.00.0000.00817.99
8.1.290.0030.00618.88
8.1.280.0120.00325.92
8.1.270.0040.00420.25
8.1.260.0050.00326.35
8.1.250.0000.00828.09
8.1.240.0030.00622.43
8.1.230.0000.01222.68
8.1.220.0000.00817.78
8.1.210.0040.00418.90
8.1.200.0060.00617.36
8.1.190.0000.00817.23
8.1.180.0060.00318.10
8.1.170.0040.00418.36
8.1.160.0000.00718.83
8.1.150.0000.00818.80
8.1.140.0000.00818.88
8.1.130.0070.00017.43
8.1.120.0000.00717.39
8.1.110.0030.00817.44
8.1.100.0030.00517.51
8.1.90.0030.00517.45
8.1.80.0040.00417.45
8.1.70.0020.00517.42
8.1.60.0040.00417.55
8.1.50.0030.00517.54
8.1.40.0060.00317.56
8.1.30.0060.00317.54
8.1.20.0000.00817.54
8.1.10.0080.00017.45
8.1.00.0040.00417.43
8.0.300.0000.01019.82
8.0.290.0000.00816.75
8.0.280.0040.00418.44
8.0.270.0030.00317.25
8.0.260.0030.00316.75
8.0.250.0040.00416.85
8.0.240.0040.00416.97
8.0.230.0050.00316.99
8.0.220.0070.00016.84
8.0.210.0000.00616.74
8.0.200.0030.00316.82
8.0.190.0040.00416.86
8.0.180.0000.00816.91
8.0.170.0080.00016.86
8.0.160.0040.00416.85
8.0.150.0000.00816.90
8.0.140.0000.00716.74
8.0.130.0060.00013.26
8.0.120.0050.00316.85
8.0.110.0040.00416.77
8.0.100.0030.00316.77
8.0.90.0000.00716.83
8.0.80.0160.00816.94
8.0.70.0070.00016.86
8.0.60.0060.00316.93
8.0.50.0040.00416.87
8.0.30.0080.01117.14
8.0.20.0060.01317.40
8.0.10.0000.00817.05
8.0.00.0110.01216.90
7.4.330.0000.00515.55
7.4.320.0000.00616.56
7.4.300.0030.00316.55
7.4.290.0000.00716.59
7.4.280.0040.00416.43
7.4.270.0000.00716.52
7.4.260.0000.01016.47
7.4.250.0000.00716.60
7.4.240.0030.00316.58
7.4.230.0000.00716.42
7.4.220.0040.00416.66
7.4.210.0070.00716.56
7.4.200.0070.00016.70
7.4.140.0250.02217.86
7.4.130.0050.01216.46
7.4.120.0130.01016.56
7.4.110.0190.00716.43
7.4.100.0140.00716.64
7.4.90.0100.00716.55
7.4.80.0100.01019.39
7.4.70.0050.01016.33
7.4.60.0000.01516.32
7.4.50.0090.00316.25
7.4.40.0100.00716.64
7.4.00.0030.01314.80
7.3.330.0050.00013.22
7.3.320.0030.00313.07
7.3.310.0000.00716.21
7.3.300.0000.00816.18
7.3.290.0000.00716.22
7.3.280.0060.00816.30
7.3.260.0100.01016.48
7.3.240.0130.00816.38
7.3.230.0090.00616.41
7.3.210.0170.00016.37
7.3.200.0160.00616.50
7.3.190.0150.00316.21
7.3.180.0040.01216.54
7.3.170.0100.01316.59
7.3.160.0070.01016.45
7.3.10.0480.01014.93
7.3.00.0520.01014.65
7.2.330.0240.00016.62
7.2.320.0190.00016.86
7.2.310.0110.01116.59
7.2.300.0140.00316.48
7.2.290.0070.01116.68
7.2.130.0450.00615.07
7.2.120.0420.00715.18
7.2.110.0440.00314.97
7.2.100.0380.00615.13
7.2.90.0390.01115.12
7.2.80.0360.01015.34
7.2.70.0550.00315.16
7.2.60.0500.00714.92
7.2.50.0500.00615.21
7.2.40.0530.00015.05
7.2.30.0410.01115.15
7.2.20.0460.00315.33
7.2.10.0460.01014.96
7.2.00.0510.01015.29
7.1.250.0490.01113.96

preferences:
64.08 ms | 403 KiB | 5 Q