3v4l.org

run code in 300+ PHP versions simultaneously
<?php $i = 0; while($i < 50) { print $i."\n"; $i = $i++; }

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.0260.01616.38
8.3.60.0200.02016.63
8.3.50.0330.01022.03
8.3.40.0260.01318.68
8.3.30.0290.01518.86
8.3.20.0060.01620.31
8.3.10.0130.01023.66
8.3.00.0180.00717.46
8.2.180.0350.01418.16
8.2.170.0360.00722.96
8.2.160.0370.00320.09
8.2.150.0220.00024.18
8.2.140.0110.01124.66
8.2.130.0460.00326.16
8.2.120.0100.01322.13
8.2.110.0220.00421.98
8.2.100.0220.01317.84
8.2.90.0070.00719.21
8.2.80.0160.00317.97
8.2.70.0040.01117.63
8.2.60.0100.00717.92
8.2.50.0070.00718.07
8.2.40.0070.00719.88
8.2.30.0040.01218.20
8.2.20.0100.00617.75
8.2.10.0040.01118.13
8.2.00.0190.01317.82
8.1.280.0330.01025.92
8.1.270.0230.00023.91
8.1.260.0160.00626.35
8.1.250.0180.00328.09
8.1.240.0250.00423.97
8.1.230.0190.01319.16
8.1.220.0090.00617.74
8.1.210.0110.00318.77
8.1.200.0070.01117.35
8.1.190.0090.00917.40
8.1.180.0170.00418.10
8.1.170.0140.00818.44
8.1.160.0110.00321.95
8.1.150.0100.00618.64
8.1.140.0150.00017.44
8.1.130.0150.00017.88
8.1.120.0100.00317.49
8.1.110.0030.01017.38
8.1.100.0070.00717.44
8.1.90.0100.00317.50
8.1.80.0070.00717.43
8.1.70.0040.01117.38
8.1.60.0120.00317.60
8.1.50.0070.01017.54
8.1.40.0070.00717.50
8.1.30.0120.00617.57
8.1.20.0100.00717.55
8.1.10.0100.00317.61
8.1.00.0090.00617.40
8.0.300.0140.00018.77
8.0.290.0070.00717.05
8.0.280.0100.00618.39
8.0.270.0090.00617.07
8.0.260.0140.00417.20
8.0.250.0030.01016.89
8.0.240.0000.01316.84
8.0.230.0150.00016.71
8.0.220.0060.00616.82
8.0.210.0110.00416.84
8.0.200.0050.00816.85
8.0.190.0070.01116.79
8.0.180.0070.01016.75
8.0.170.0070.01016.79
8.0.160.0150.00416.73
8.0.150.0070.01016.73
8.0.140.0090.00616.80
8.0.130.0080.00813.25
8.0.120.0090.00616.88
8.0.110.0060.00916.84
8.0.100.0120.00416.72
8.0.90.0060.00916.62
8.0.80.0310.04016.70
8.0.70.0070.00716.69
8.0.60.0070.01016.64
8.0.50.0140.00316.71
8.0.30.0580.04117.09
8.0.20.0510.03417.40
8.0.10.0070.00716.88
8.0.00.0410.03816.64
7.4.330.0090.00615.09
7.4.320.0070.00716.27
7.4.300.0090.00616.19
7.4.290.0070.00616.41
7.4.280.0170.00016.31
7.4.270.0110.00316.25
7.4.260.0150.00616.38
7.4.250.0110.00416.23
7.4.240.0090.00716.33
7.4.230.0170.00016.23
7.4.220.0270.02516.36
7.4.210.0220.03116.33
7.4.200.0140.00016.43
7.4.190.0140.00016.58
7.4.160.0930.01416.32
7.4.150.0600.02617.40
7.4.140.0620.03117.86
7.4.130.0640.02816.38
7.4.120.0530.03516.31
7.4.110.0530.02516.37
7.4.100.0460.03316.41
7.4.90.0760.04016.47
7.4.80.0340.03719.39
7.4.70.0460.02216.46
7.4.60.0370.03316.45
7.4.50.0140.00716.37
7.4.40.0250.01422.77
7.4.30.0250.04216.46
7.4.00.0100.02714.46
7.3.330.0060.00913.18
7.3.320.0100.00313.13
7.3.310.0150.00416.32
7.3.300.0100.00316.13
7.3.290.0260.02016.18
7.3.280.0240.03816.16
7.3.270.0460.03817.40
7.3.260.0840.03416.14
7.3.250.0570.02016.20
7.3.240.0670.02616.48
7.3.230.0510.04416.39
7.3.210.0600.02216.27
7.3.200.0350.07319.39
7.3.190.0300.03116.18
7.3.180.0620.03116.36
7.3.170.0400.02016.27
7.3.160.0410.04116.12
7.3.120.0230.01714.39
7.2.330.0450.03216.54
7.2.320.0320.02916.61
7.2.310.0220.03516.59
7.2.300.0240.03816.52
7.2.290.0370.02516.37
7.2.00.0110.01118.96
7.1.100.0140.00718.04
7.1.70.0110.00717.03
7.1.60.0200.01419.46
7.1.50.0260.01916.83
7.0.200.0100.01016.71

preferences:
26.46 ms | 401 KiB | 5 Q