3v4l.org

run code in 300+ PHP versions simultaneously
<?php phpversion() >= "5.6.15" or die(); $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( INF, $two_pow_64 ); } catch (Error $e) { echo $e->getMessage(),"\n"; } try { echo ( INF % $two_pow_64); } catch (Error $e) { echo $e->getMessage(),"\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)
7.4.10.0150.00315.18
7.4.00.0030.00914.89
7.3.130.0100.00714.81
7.3.120.0060.00915.09
7.3.110.0040.01414.96
7.3.100.0070.00714.83
7.3.90.0000.01414.89
7.3.80.0040.01215.04
7.3.70.0040.01114.97
7.3.60.0040.01115.06
7.3.50.0000.01714.88
7.3.40.0030.01214.88
7.3.30.0050.00414.74
7.3.20.0060.00316.68
7.3.10.0040.01216.31
7.3.00.0060.00316.83
7.2.260.0060.01015.13
7.2.250.0130.00315.22
7.2.240.0030.01115.14
7.2.230.0000.01415.40
7.2.220.0000.01415.22
7.2.210.0040.01114.76
7.2.200.0090.00315.23
7.2.190.0110.00015.12
7.2.180.0070.01115.01
7.2.170.0070.00715.01
7.2.160.0040.00715.17
7.2.150.0070.00717.05
7.2.140.0070.00317.24
7.2.130.0030.00916.78
7.2.120.0030.00616.93
7.2.110.0030.01016.93
7.2.100.0000.01217.04
7.2.90.0060.00916.81
7.2.80.0120.00317.04
7.2.70.0040.01117.24
7.2.60.0040.01117.04
7.2.50.0000.01516.86
7.2.40.0030.00917.10
7.2.30.0030.00617.13
7.2.20.0080.00317.07
7.2.10.0000.01116.97
7.2.00.0050.01018.37
7.1.330.0040.01115.71
7.1.320.0060.00315.70
7.1.310.0030.01015.97
7.1.300.0060.00915.87
7.1.290.0100.00015.55
7.1.280.0030.01215.75
7.1.270.0030.00915.67
7.1.260.0040.01115.58
7.1.250.0030.00615.48
7.1.240.0060.00315.66
7.1.230.0040.00715.92
7.1.220.0070.00415.58
7.1.210.0000.01615.70
7.1.200.0000.00815.69
7.1.190.0000.01415.99
7.1.180.0080.00416.05
7.1.170.0060.00615.85
7.1.160.0090.00315.70
7.1.150.0030.00715.65
7.1.140.0040.00815.75
7.1.130.0080.00815.72
7.1.120.0070.00715.95
7.1.110.0070.00415.71
7.1.100.0020.01317.04
7.1.90.0030.01015.72
7.1.80.0100.00716.00
7.1.70.0070.00616.56
7.1.60.0120.00917.38
7.1.50.0090.00716.51
7.1.40.0030.00616.12
7.1.30.0090.00315.66
7.1.20.0030.01215.76
7.1.10.0000.01815.82
7.1.00.0030.04119.24
7.0.330.0070.00714.88
7.0.320.0070.00715.13
7.0.310.0060.00615.46
7.0.300.0100.00015.20
7.0.290.0030.01015.38
7.0.280.0000.01215.32
7.0.270.0000.01115.43
7.0.260.0060.00915.42
7.0.250.0060.00915.54
7.0.240.0000.01415.22
7.0.230.0070.00715.28
7.0.220.0000.01615.34
7.0.210.0030.01014.97
7.0.200.0040.00716.15
7.0.190.0080.00615.32
7.0.180.0090.00615.13
7.0.170.0000.01315.43
7.0.160.0040.01515.34
7.0.150.0000.01615.42
7.0.140.0070.00315.24
7.0.130.0070.00715.02
7.0.120.0100.00715.24
7.0.110.0110.00415.08
7.0.100.0100.00315.34
7.0.90.0000.01415.04
7.0.80.0040.01115.01
7.0.70.0090.00615.24
7.0.60.0050.03117.57
7.0.50.0060.04116.81
7.0.40.0040.03416.78
7.0.30.0130.02316.75
7.0.20.0120.04916.87
7.0.10.0050.03916.86
7.0.00.0070.04816.64
5.6.400.0090.00614.14
5.6.390.0040.00914.34
5.6.380.0000.01214.46
5.6.370.0000.01214.48
5.6.360.0100.00314.42
5.6.350.0040.00814.03
5.6.340.0030.00914.27
5.6.330.0040.01414.26
5.6.320.0060.00914.28
5.6.310.0060.01014.09
5.6.300.0100.01014.70
5.6.290.0030.00714.04
5.6.280.0060.03417.67
5.6.270.0060.00914.69
5.6.260.0000.01014.14
5.6.250.0040.01114.11
5.6.240.0070.00414.03
5.6.230.0070.01314.26
5.6.220.0060.01214.26
5.6.210.0050.04917.48
5.6.200.0090.02416.15
5.6.190.0070.04917.47
5.6.180.0300.04017.39
5.6.170.0170.03017.53
5.6.160.0040.04117.64
5.6.150.0030.05016.37
5.6.140.0070.02216.16
5.6.130.0050.04716.21
5.6.120.0050.02317.55
5.6.110.0090.02817.60
5.6.100.0050.03717.69
5.6.90.0080.04317.58
5.6.80.0070.03517.31
5.6.70.0080.00414.00
5.6.60.0080.00414.13
5.6.50.0000.01313.90
5.6.40.0030.01014.41
5.6.30.0120.00314.09
5.6.20.0030.01414.30
5.6.10.0070.01013.88
5.6.00.0060.00614.09
5.5.380.0040.01114.48
5.5.370.0000.01614.31
5.5.360.0070.01314.20
5.5.350.0070.03017.30
5.5.340.0120.04016.03
5.5.330.0100.02517.19
5.5.320.0050.03017.23
5.5.310.0110.02317.20
5.5.300.0090.03816.10
5.5.290.0100.02515.92
5.5.280.0110.04317.65
5.5.270.0050.02317.43
5.5.260.0100.03217.53
5.5.250.0110.03317.20
5.5.240.0120.03817.11
5.5.230.0090.00314.09
5.5.220.0070.01013.52
5.5.210.0030.01013.95
5.5.200.0070.00713.77
5.5.190.0040.00713.71
5.5.180.0040.00813.96
5.5.170.0070.00713.89
5.5.160.0000.01314.07
5.5.150.0030.01013.77
5.5.140.0060.01013.99
5.5.130.0070.00713.68
5.5.120.0030.01213.96
5.5.110.0060.00913.63
5.5.100.0040.01213.84
5.5.90.0060.00614.11
5.5.80.0040.01114.04
5.5.70.0030.01413.58
5.5.60.0030.01013.98
5.5.50.0040.01114.21
5.5.40.0000.01113.86
5.5.30.0040.00713.92
5.5.20.0110.00314.04
5.5.10.0000.01413.90
5.5.00.0030.01313.98

preferences:
32.47 ms | 400 KiB | 5 Q