3v4l.org

run code in 300+ PHP versions simultaneously
<?php $i = 5; while($i <= 10) { echo 'Going up to number ' . $i . ' ook?'; }

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.60.0040.01117.93
8.3.50.0140.00522.00
8.3.40.0100.01018.71
8.3.30.0160.00319.07
8.3.20.0080.00020.20
8.3.10.0000.00822.15
8.3.00.0040.00420.62
8.2.180.0170.00316.32
8.2.170.0100.01322.96
8.2.160.0110.00419.20
8.2.150.0060.00324.18
8.2.140.0030.00624.66
8.2.130.0170.00726.16
8.2.120.0000.00819.23
8.2.110.0070.00421.11
8.2.100.0040.00817.72
8.2.90.0040.00419.07
8.2.80.0030.00517.97
8.2.70.0050.00517.25
8.2.60.0000.00817.90
8.2.50.0070.00318.07
8.2.40.0050.00320.07
8.2.30.0060.00318.12
8.2.20.0050.00317.86
8.2.10.0030.00617.74
8.2.00.0040.00417.66
8.1.280.0110.00425.92
8.1.270.0080.00022.14
8.1.260.0060.00326.35
8.1.250.0030.00628.09
8.1.240.0060.00322.02
8.1.230.0070.00418.86
8.1.220.0050.00317.74
8.1.210.0060.00318.77
8.1.200.0000.01017.35
8.1.190.0060.00317.35
8.1.180.0080.00018.59
8.1.170.0000.00818.65
8.1.160.0000.00822.08
8.1.150.0000.00718.63
8.1.140.0100.00017.46
8.1.130.0030.00317.93
8.1.120.0020.00517.54
8.1.110.0080.00017.55
8.1.100.0030.00517.50
8.1.90.0000.00717.54
8.1.80.0040.00417.43
8.1.70.0040.00417.43
8.1.60.0060.00317.65
8.1.50.0060.00317.63
8.1.40.0000.00717.55
8.1.30.0040.00417.67
8.1.20.0030.00517.59
8.1.10.0040.00417.57
8.1.00.0040.00417.55
8.0.300.0090.00018.77
8.0.290.0080.00016.63
8.0.280.0000.00718.39
8.0.270.0000.00717.21
8.0.260.0030.00316.81
8.0.250.0000.00716.79
8.0.240.0040.00416.95
8.0.230.0090.00016.87
8.0.220.0000.00716.84
8.0.210.0040.00416.84
8.0.200.0050.00216.80
8.0.190.0000.00816.93
8.0.180.0070.00016.85
8.0.170.0070.00016.82
8.0.160.0080.00016.88
8.0.150.0030.00616.79
8.0.140.0040.00416.78
8.0.130.0030.00313.24
8.0.120.0050.00316.84
8.0.110.0000.00816.76
8.0.100.0080.00016.71
8.0.90.0040.00416.83
8.0.80.0120.00616.75
8.0.70.0030.00516.81
8.0.60.0000.00816.77
8.0.50.0050.00216.61
8.0.30.0140.01116.89
8.0.20.0140.00817.40
8.0.10.0000.00816.67
8.0.00.0140.00916.76
7.4.330.0050.00015.00
7.4.320.0030.00316.41
7.4.300.0040.00416.22
7.4.290.0070.00016.32
7.4.280.0070.00016.32
7.4.270.0030.00316.46
7.4.260.0040.00416.29
7.4.250.0040.00416.17
7.4.240.0040.00416.41
7.4.230.0000.00716.30
7.4.220.0130.01716.35
7.4.210.0070.01116.37
7.4.200.0050.00216.30
7.4.190.0080.00016.29
7.4.160.0180.00316.39
7.4.150.0190.01017.40
7.4.140.0180.01217.86
7.4.130.0120.01416.38
7.4.120.0110.01316.49
7.4.110.0170.00516.54
7.4.100.0090.01616.37
7.4.90.0120.00916.43
7.4.80.0070.01419.39
7.4.70.0090.01616.22
7.4.60.0140.00716.41
7.4.50.0050.00016.21
7.4.40.0120.00322.77
7.4.30.0030.01716.34
7.4.00.0120.00314.58
7.3.330.0000.00612.95
7.3.320.0050.00013.19
7.3.310.0050.00216.01
7.3.300.0000.00816.07
7.3.290.0080.00816.20
7.3.280.0080.00916.17
7.3.270.0110.01517.40
7.3.260.0120.01116.29
7.3.250.0190.00716.35
7.3.240.0120.00916.25
7.3.230.0110.01816.39
7.3.210.0120.00916.51
7.3.200.0150.00619.39
7.3.190.0150.00616.11
7.3.180.0030.01616.35
7.3.170.0150.00716.27
7.3.160.0150.00816.20
7.3.120.0120.00614.96
7.2.330.0190.00616.36
7.2.320.0110.01116.22
7.2.310.0060.01216.43
7.2.300.0130.01316.35
7.2.290.0170.00716.70
7.2.00.0030.01319.36
7.1.100.0070.00717.92
7.1.70.0020.00517.04
7.1.60.0150.00919.82
7.1.50.0110.01417.11
7.0.200.0040.00416.48

preferences:
32.46 ms | 401 KiB | 5 Q