3v4l.org

run code in 300+ PHP versions simultaneously
<?php $float = 0.123456789012345678901234567890; ini_set('precision', 10); print $float ."\n"; ini_set('precision', 25); print $float ."\n"; ini_set('precision', -1); print $float ."\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.4.120.0110.00922.42
8.4.110.0070.00218.70
8.4.100.0120.00917.59
8.4.90.0060.00317.91
8.4.80.0050.00417.74
8.4.70.0070.00817.91
8.4.60.0120.00820.28
8.4.50.0140.00620.36
8.4.40.0030.01717.45
8.4.30.0140.00718.70
8.4.20.0100.01019.45
8.4.10.0150.00419.34
8.3.250.0130.00618.84
8.3.240.0140.00816.49
8.3.230.0060.00416.49
8.3.220.0100.00917.08
8.3.210.0080.00916.71
8.3.200.0110.01016.66
8.3.190.0080.01016.96
8.3.180.0080.01118.23
8.3.170.0110.00720.55
8.3.160.0080.00017.36
8.3.150.0100.00616.97
8.3.140.0110.00716.70
8.3.130.0060.00318.34
8.3.120.0070.01118.78
8.3.110.0050.00520.94
8.3.100.0040.00416.50
8.3.90.0080.00026.77
8.3.80.0060.00317.97
8.3.70.0470.00716.58
8.3.60.0460.00916.58
8.3.50.0180.00217.50
8.3.40.0290.00917.31
8.3.30.0360.00717.06
8.3.20.0370.00617.25
8.3.10.0360.00817.19
8.3.00.0320.00817.17
8.2.290.0120.00620.13
8.2.280.0100.00918.23
8.2.270.0110.00817.28
8.2.260.0050.00316.64
8.2.250.0040.00416.52
8.2.240.0070.01117.08
8.2.230.0040.00422.58
8.2.220.0050.00324.06
8.2.210.0090.00926.77
8.2.200.0030.00718.43
8.2.190.0370.00816.58
8.2.180.0420.00516.58
8.2.170.0340.00917.50
8.2.160.0330.01017.42
8.2.150.0390.00717.25
8.2.140.0440.01117.38
8.2.130.0450.00217.50
8.2.120.0450.00617.56
8.2.110.0370.00817.50
8.2.100.0360.01017.43
8.2.90.0390.01017.69
8.2.80.0380.01117.25
8.2.70.0370.00917.38
8.2.60.0250.00517.38
8.2.50.0420.01217.31
8.2.40.0320.01317.38
8.2.30.0370.00917.31
8.2.20.0380.00917.38
8.2.10.0360.00617.25
8.2.00.0340.00917.25
8.1.330.0060.00316.90
8.1.320.0120.00615.87
8.1.310.0030.00518.62
8.1.300.0040.00418.46
8.1.290.0090.00330.84
8.1.280.0330.01016.58
8.1.270.0380.00817.12
8.1.260.0340.00217.18
8.1.250.0280.00917.18
8.1.240.0310.00617.12
8.1.230.0260.00617.10
8.1.220.0220.00717.22
8.1.210.0250.00817.05
8.1.200.0300.00717.12
8.1.190.0300.01317.05
8.1.180.0390.00517.10
8.1.170.0350.00917.22
8.1.160.0350.00916.93
8.1.150.0310.01117.22
8.1.140.0300.01017.22
8.1.130.0270.01317.13
8.1.120.0350.00917.28
8.1.110.0350.00817.10
8.1.100.0290.01017.17
8.1.90.0300.01317.06
8.1.80.0330.01016.99
8.1.70.0320.00817.06
8.1.60.0390.00717.23
8.1.50.0370.00817.18
8.1.40.0440.00817.11
8.1.30.0380.01017.18
8.1.20.0500.00217.17
8.1.10.0370.01017.41
8.1.00.0380.00517.16

preferences:
26.88 ms | 403 KiB | 5 Q