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.2.00.0040.00819.23
7.1.100.0000.01218.00
7.1.70.0000.01017.28
7.1.60.0140.01019.13
7.1.50.0030.00717.08
7.1.00.0000.07722.64
7.0.200.0040.00416.86
7.0.100.0130.06721.95
7.0.90.0100.05021.77
7.0.80.0170.07321.86
7.0.70.0100.08321.92
7.0.60.0030.08721.76
7.0.50.0130.07022.30
7.0.40.0030.04720.23
7.0.30.0100.07720.26
7.0.20.0170.07020.26
7.0.10.0130.07320.18
7.0.00.0070.08720.25
5.6.280.0000.07721.05
5.6.250.0130.07720.82
5.6.240.0070.08320.70
5.6.230.0030.08320.77
5.6.220.0100.05020.81
5.6.210.0070.08020.89
5.6.200.0100.08021.36
5.6.190.0030.08321.27
5.6.180.0130.08021.11
5.6.170.0130.07721.25
5.6.160.0000.05321.23
5.6.150.0070.07721.12
5.6.140.0030.04321.35
5.6.130.0000.04721.11
5.6.120.0030.06721.25
5.6.110.0000.08721.19
5.6.100.0070.08021.19
5.6.90.0030.05721.29
5.6.80.0100.08020.63
5.6.70.0100.06720.55
5.6.60.0130.07320.63
5.6.50.0100.07020.61
5.6.40.0030.08720.57
5.6.30.0100.05720.61
5.6.20.0100.07720.48
5.6.10.0100.06020.58
5.6.00.0070.07320.56
5.5.380.0070.07720.57
5.5.370.0130.07020.69
5.5.360.0070.07020.68
5.5.350.0100.07720.65
5.5.340.0200.06321.02
5.5.330.0030.08021.00
5.5.320.0030.07321.07
5.5.310.0000.07021.12
5.5.300.0100.07321.09
5.5.290.0030.07721.07
5.5.280.0130.06320.80
5.5.270.0030.06320.99
5.5.260.0130.07720.94
5.5.250.0070.07320.79
5.5.240.0070.07320.33
5.5.230.0100.07720.44
5.5.220.0100.04720.35
5.5.210.0030.08320.38
5.5.200.0100.06720.33
5.5.190.0000.07320.42
5.5.180.0070.07720.42
5.5.160.0070.08020.19
5.5.150.0030.07720.34
5.5.140.0100.06020.42
5.5.130.0030.04020.41
5.5.120.0030.08020.43
5.5.110.0130.07020.39
5.5.100.0170.07020.27
5.5.90.0070.08020.23
5.5.80.0030.08020.15
5.5.70.0070.08320.28
5.5.60.0100.04320.33
5.5.50.0070.07020.20
5.5.40.0100.04720.35
5.5.30.0200.04020.33
5.5.20.0000.06720.20
5.5.10.0200.04020.32
5.5.00.0130.07020.16

preferences:
34.74 ms | 401 KiB | 5 Q