3v4l.org

run code in 300+ PHP versions simultaneously
<?php $f = 0; for($i = 0 ; $i < 10000 ; $i ++) { $f = $f + 0.01; } var_dump($f);

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.140.0120.00616.67
8.3.130.0080.00016.43
8.3.120.0080.00018.55
8.3.110.0040.00420.94
8.3.100.0030.00624.06
8.3.90.0060.01026.77
8.3.80.0060.00318.43
8.3.70.0090.00918.43
8.3.60.0130.00316.63
8.3.50.0070.01018.29
8.3.40.0120.00319.83
8.3.30.0000.01518.53
8.3.20.0000.00824.18
8.3.10.0040.00424.66
8.3.00.0050.00226.16
8.2.250.0070.00717.30
8.2.240.0060.00318.80
8.2.230.0090.00022.58
8.2.220.0040.00437.54
8.2.210.0190.00026.77
8.2.200.0060.00318.16
8.2.190.0100.01016.58
8.2.180.0070.00725.92
8.2.170.0110.00322.96
8.2.160.0100.00322.96
8.2.150.0040.00425.66
8.2.140.0050.00324.66
8.2.130.0020.00526.16
8.2.120.0000.00819.64
8.2.110.0070.00422.20
8.2.100.0090.00317.66
8.2.90.0030.00617.72
8.2.80.0090.00018.04
8.2.70.0080.00017.80
8.2.60.0040.00418.09
8.2.50.0080.00018.10
8.2.40.0030.00619.17
8.2.30.0030.00619.18
8.2.20.0040.00419.18
8.2.10.0030.00318.16
8.2.00.0050.01017.70
8.1.300.0000.01116.24
8.1.290.0090.00030.84
8.1.280.0070.00725.92
8.1.270.0050.00324.66
8.1.260.0000.00826.35
8.1.250.0000.00828.09
8.1.240.0090.00022.18
8.1.230.0060.00920.92
8.1.220.0000.00717.74
8.1.210.0000.00818.77
8.1.200.0060.00317.35
8.1.190.0040.00417.22
8.1.180.0060.00318.10
8.1.170.0080.00018.60
8.1.160.0000.00818.71
8.1.150.0050.00518.53
8.1.140.0000.00817.43
8.1.130.0080.00817.39
8.1.120.0080.00817.42
8.1.110.0160.00017.35
8.1.100.0150.00217.43
8.1.90.0070.01117.43
8.1.80.0080.00817.49
8.1.70.0090.00617.33
8.1.60.0110.00817.67
8.1.50.0120.00817.49
8.1.40.0130.00617.63
8.1.30.0180.00417.50
8.1.20.0140.00517.56
8.1.10.0140.00417.50
8.1.00.0130.00317.38
8.0.300.0000.00819.63
8.0.290.0000.00916.63
8.0.280.0040.00418.42
8.0.270.0080.00017.99
8.0.260.0080.00516.87
8.0.250.0100.00216.87
8.0.240.0120.00216.87
8.0.230.0110.00416.87
8.0.220.0110.00416.87
8.0.210.0040.00816.87
8.0.200.0160.00016.87
8.0.190.0110.00416.87
8.0.180.0040.01216.87
8.0.170.0120.00316.87
8.0.160.0150.00416.87
8.0.150.0050.01116.87
8.0.140.0050.01116.87
8.0.130.0100.00716.87
8.0.120.0100.00616.87
8.0.110.0110.00516.87
8.0.100.0110.00416.87
8.0.90.0120.00316.87
8.0.80.0090.00416.87
8.0.70.0100.00316.87
8.0.60.0090.00416.87
8.0.50.0030.00916.87
8.0.30.0050.00816.87
8.0.20.0040.00916.87
8.0.10.0100.00016.89

preferences:
26.62 ms | 403 KiB | 5 Q