3v4l.org

run code in 300+ PHP versions simultaneously
<?php phpversion() >= "5.6.15"; $two_pow_64 = pow(2,64); echo (int) INF,"\n"; echo (int) $two_pow_64,"\n"; echo ((int) INF) % 2, "\n"; echo @((int) INF) / ((int) $two_pow_64); try { echo intdiv((int) INF), ((int) $two_pow_64); } catch (Error $e) { echo $e->getMessage(); } try { echo ((int) INF) % ((int) $two_pow_64); } catch (Error $e) { echo $e->getMessage(); }

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)
7.3.120.0070.00715.20
7.3.110.0090.00314.89
7.3.100.0090.00615.17
7.3.90.0030.00714.76
7.3.80.0030.00815.04
7.3.70.0090.00614.72
7.3.60.0040.01114.96
7.3.50.0060.00915.17
7.3.40.0090.00615.09
7.3.30.0070.00714.98
7.3.20.0000.01116.84
7.3.10.0090.00616.76
7.3.00.0010.00916.74
7.2.240.0030.01215.18
7.2.230.0100.00615.02
7.2.220.0070.00715.08
7.2.210.0060.00915.31
7.2.200.0030.01215.07
7.2.190.0070.00315.37
7.2.180.0030.00915.38
7.2.170.0100.00315.21
7.2.160.0080.00614.94
7.2.150.0030.00817.00
7.2.140.0100.00717.07
7.2.130.0040.01017.08
7.2.120.0030.01116.92
7.2.110.0110.00517.09
7.2.100.0080.00817.01
7.2.90.0020.00716.96
7.2.80.0050.00817.17
7.2.70.0100.00517.13
7.2.60.0050.00717.04
7.2.50.0040.00717.21
7.2.40.0060.00617.14
7.2.30.0070.00516.99
7.2.20.0050.00917.11
7.2.10.0070.00616.97
7.2.00.0040.01017.78
7.1.330.0030.00715.82
7.1.320.0000.01515.88
7.1.310.0090.00615.57
7.1.300.0030.01315.88
7.1.290.0030.01015.82
7.1.280.0000.01415.59
7.1.270.0100.00315.78
7.1.260.0100.00315.60
7.1.250.0030.00715.73
7.1.100.0120.00816.27
7.1.70.0110.00316.99
7.1.60.0030.02119.13
7.1.50.0070.00317.16
7.1.00.0030.07322.73
7.0.200.0040.00416.90
7.0.60.0070.03720.11
7.0.50.0070.04018.11
7.0.40.0170.05320.05
7.0.30.0230.04320.24
7.0.20.0200.06720.06
7.0.10.0030.06320.24
7.0.00.0030.05320.24
5.6.280.0000.07321.33
5.6.210.0030.05720.78
5.6.200.0030.04018.37
5.6.190.0070.06720.54
5.6.180.0500.06020.73
5.6.170.0270.06020.74
5.6.160.0030.08020.54
5.6.150.0130.08018.31
5.6.140.0030.08318.34
5.6.130.0100.04018.30
5.6.120.0100.06321.20
5.6.110.0100.04021.23
5.6.100.0170.06721.12
5.6.90.0100.08321.19
5.6.80.0100.04320.59
5.5.350.0100.03720.59
5.5.340.0030.08318.23
5.5.330.0130.08320.38
5.5.320.0030.05020.54
5.5.310.0170.04020.29
5.5.300.0030.04318.16
5.5.290.0070.05018.04
5.5.280.0070.04021.09
5.5.270.0100.03321.00
5.5.260.0070.08320.98
5.5.250.0100.07720.68
5.5.240.0170.06320.48

preferences:
37.01 ms | 400 KiB | 5 Q