3v4l.org

run code in 300+ PHP versions simultaneously
<?php $float = PHP_INT_MAX * 1000; // float larger than max. int echo $float . "\n"; echo PHP_INT_MAX . "\n"; echo (int) $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.5.10.0120.00916.95
8.5.00.0130.00820.09
8.4.150.0190.00616.70
8.4.140.0130.00817.37
8.4.130.0130.00817.73
8.4.120.0090.00420.60
8.4.110.0110.00619.06
8.4.100.0140.00717.88
8.4.90.0120.00917.94
8.4.80.0110.00918.70
8.4.70.0080.00317.82
8.4.60.0090.00217.85
8.4.50.0070.00517.53
8.4.40.0060.00517.49
8.4.30.0050.00517.81
8.4.20.0060.00617.93
8.4.10.0120.01017.64
8.3.280.0060.00616.19
8.3.270.0110.00816.46
8.3.260.0100.00816.71
8.3.250.0100.00917.31
8.3.240.0100.00616.68
8.3.230.0040.00416.59
8.3.220.0140.00318.64
8.3.210.0060.00516.59
8.3.200.0070.00416.48
8.3.190.0100.00216.61
8.3.180.0060.00416.28
8.3.170.0080.00416.46
8.3.160.0060.00416.50
8.3.150.0100.00216.43
8.3.140.0070.00316.61
8.3.130.0060.00416.73
8.3.120.0060.00516.59
8.3.110.0050.00616.55
8.3.100.0060.00516.43
8.3.90.0050.00716.64
8.3.80.0050.00516.46
8.3.70.0070.00516.53
8.3.60.0060.00516.82
8.3.50.0070.00316.73
8.3.40.0070.00317.83
8.3.30.0080.00317.71
8.3.20.0080.00217.60
8.3.10.0090.00217.39
8.3.00.0070.00417.70
8.2.290.0100.00919.25
8.2.280.0070.00516.50
8.2.270.0050.00416.57
8.2.260.0100.00116.61
8.2.250.0040.00616.43
8.2.240.0060.00516.67
8.2.230.0050.00416.41
8.2.220.0090.00116.77
8.2.210.0080.00116.30
8.2.200.0050.00516.60
8.2.190.0080.00216.13
8.2.180.0080.00616.38
8.2.170.0120.00417.50
8.2.160.0130.00317.50
8.2.150.0110.00417.45
8.2.140.0130.00417.38
8.2.130.0170.00217.17
8.2.120.0130.00217.41
8.2.110.0130.00417.47
8.2.100.0160.00117.19
8.2.90.0130.00417.47
8.2.80.0110.00617.47
8.2.70.0160.00316.96
8.2.60.0100.00517.45
8.2.50.0120.00417.01
8.2.40.0120.00416.95
8.2.30.0120.00216.61
8.2.20.0170.00217.14
8.2.10.0080.00617.28
8.2.00.0080.00617.45

preferences:
48.95 ms | 403 KiB | 5 Q