3v4l.org

run code in 300+ PHP versions simultaneously
<?php foreach (range(1, 2, 0.1) as $r) { var_dump($r); if ($r === 1.7) echo "ok\n"; if (intval($r * 10) === 17) echo "okish\n"; }

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.1.70.0040.00417.38
8.1.60.0000.00917.63
8.1.50.0050.00517.52
8.1.40.0060.00617.58
8.1.30.0060.00317.54
8.1.20.0030.00517.64
8.1.10.0050.00317.36
8.1.00.0050.00317.41
8.0.200.0040.00416.99
8.0.190.0000.00916.87
8.0.180.0060.00316.96
8.0.170.0030.00716.90
8.0.160.0050.00216.85
8.0.150.0040.00416.89
8.0.140.0000.00716.79
8.0.130.0000.00513.37
8.0.120.0000.00816.88
8.0.110.0040.00416.97
8.0.100.0030.00317.05
8.0.90.0040.00416.97
8.0.80.0000.00716.98
8.0.70.0050.00316.90
8.0.60.0080.00016.97
8.0.50.0040.00416.82
8.0.30.0000.00816.82
8.0.20.0000.00717.12
8.0.10.0000.00816.88
8.0.00.0000.00817.20
7.4.300.0030.00316.49
7.4.290.0070.00016.53
7.4.280.0030.00316.56
7.4.270.0070.00016.57
7.4.260.0030.00313.27
7.4.250.0000.00716.45
7.4.240.0070.00016.47
7.4.230.0040.00416.62
7.4.220.0030.00516.51
7.4.210.0030.00616.34
7.4.200.0070.00016.58
7.4.190.0000.00716.36
7.4.180.0070.00016.67
7.4.160.0030.00516.37
7.4.150.0000.00716.36
7.4.140.0000.00716.47
7.4.130.0030.00316.59
7.4.120.0060.00316.48
7.4.110.0080.00016.39
7.4.100.0040.00716.63
7.4.90.0040.00416.32
7.4.80.0030.00516.59
7.4.70.0030.00516.50
7.4.60.0040.00416.39
7.4.50.0060.00216.43
7.4.40.0000.00816.54
7.4.30.0040.00416.41
7.4.20.0030.00516.51
7.4.10.0080.00016.61
7.4.00.0000.00816.67
7.3.330.0040.00416.38
7.3.320.0050.00013.26
7.3.310.0050.00216.44
7.3.300.0070.00016.40
7.3.290.0060.00016.22
7.3.280.0030.00316.45
7.3.270.0060.00016.25
7.3.260.0060.00016.34
7.3.250.0070.00016.27
7.3.240.0060.00016.41
7.3.230.0040.00416.22
7.3.220.0060.00016.35
7.3.210.0000.00616.36
7.3.200.0030.00316.31
7.3.190.0030.00316.32
7.3.180.0000.00616.37
7.3.170.0030.00316.20
7.3.160.0040.00416.23
7.3.150.0040.00416.37
7.3.140.0000.00716.37
7.3.130.0060.00016.31
7.3.120.0030.00316.22
7.3.110.0060.00016.12
7.3.100.0030.00316.12
7.3.90.0000.00716.54
7.3.80.0040.00416.35
7.3.70.0050.00216.32
7.3.60.0040.00416.33
7.3.50.0030.00316.40
7.3.40.0000.00616.18
7.3.30.0040.00416.40
7.3.20.0040.00416.49
7.3.10.0040.00416.42
7.3.00.0030.00516.43

preferences:
10.11 ms | 406 KiB | 5 Q