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); echo intdiv((int) INF), ((int) $two_pow_64); echo ((int) INF) % ((int) $two_pow_64);

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.10.0050.00516.51
7.3.00.0070.00716.81
7.2.130.0080.00016.85
7.2.120.0000.01317.04
7.2.110.0070.00317.11
7.2.100.0050.00317.05
7.2.90.0030.01017.00
7.2.80.0110.00316.61
7.2.70.0030.00616.86
7.2.60.0070.00816.89
7.2.50.0000.01417.07
7.2.40.0120.00317.18
7.2.30.0070.01016.97
7.2.20.0070.00716.97
7.2.10.0090.00416.91
7.2.00.0070.00918.20
7.1.250.0030.00615.89
7.1.240.0000.00815.58
7.1.230.0070.00315.67
7.1.220.0050.00515.91
7.1.210.0030.00615.62
7.1.200.0110.00415.70
7.1.190.0100.00315.81
7.1.180.0150.00015.93
7.1.170.0100.00315.91
7.1.160.0100.00315.83
7.1.150.0090.00016.01
7.1.140.0030.00915.61
7.1.130.0060.00615.94
7.1.120.0090.00615.64
7.1.110.0080.00315.56
7.1.100.0030.01016.93
7.1.90.0090.00615.96
7.1.80.0040.00715.83
7.1.70.0050.00516.65
7.1.60.0120.00717.54
7.1.50.0070.00616.51
7.1.40.0000.01415.63
7.1.30.0090.00615.92
7.1.20.0000.01315.86
7.1.10.0070.00716.00
7.1.00.0030.04419.08
7.0.330.0040.00715.41
7.0.320.0000.00815.43
7.0.310.0070.00715.41
7.0.300.0060.01015.42
7.0.290.0000.01515.13
7.0.280.0100.00315.50
7.0.270.0040.00415.20
7.0.260.0100.00315.56
7.0.250.0030.00915.34
7.0.240.0090.00315.57
7.0.230.0060.00915.31
7.0.220.0040.01115.49
7.0.210.0090.00315.42
7.0.200.0050.00516.20
7.0.190.0100.00315.36
7.0.180.0040.00815.33
7.0.170.0060.00315.62
7.0.160.0040.01215.55
7.0.150.0040.00415.55
7.0.140.0090.00315.39
7.0.130.0070.00715.18
7.0.120.0080.00015.41
7.0.110.0060.00915.48
7.0.100.0030.00615.18
7.0.90.0070.00715.45
7.0.80.0040.01215.36
7.0.70.0000.00915.50
7.0.60.0040.02417.70
7.0.50.0020.02916.61
7.0.40.0050.04516.85
7.0.30.0160.02116.71
7.0.20.0210.04216.85
7.0.10.0080.04716.90
7.0.00.0120.04016.82
5.6.380.0090.00614.38
5.6.370.0040.00414.14
5.6.360.0040.01114.39
5.6.350.0070.00714.10
5.6.340.0060.00614.18
5.6.330.0070.00714.54
5.6.320.0070.00714.46
5.6.310.0040.01214.14
5.6.300.0070.00714.10
5.6.290.0040.00714.31
5.6.280.0020.02217.85
5.6.270.0040.00414.50
5.6.260.0050.00814.41
5.6.250.0030.01014.28
5.6.240.0030.01014.66
5.6.230.0090.00614.33
5.6.220.0090.00614.44
5.6.210.0100.03317.53
5.6.200.0050.03916.22
5.6.190.0040.05117.60
5.6.180.0300.02817.60
5.6.170.0150.03017.46
5.6.160.0050.02517.38
5.6.150.0020.03816.48
5.6.140.0080.04316.47
5.6.130.0050.03016.35
5.6.120.0070.04517.88
5.6.110.0070.05017.77
5.6.100.0070.04717.85
5.6.90.0030.04817.71
5.6.80.0030.04917.49
5.6.70.0120.00614.17
5.6.60.0040.01114.09
5.6.50.0110.00314.00
5.6.40.0030.00614.18
5.6.30.0040.01114.16
5.6.20.0110.00314.09
5.6.10.0030.00714.27
5.6.00.0030.01314.36
5.5.380.0030.00311.25
5.5.370.0070.00711.24
5.5.360.0040.00710.77
5.5.350.0050.02015.82
5.5.340.0070.04314.57
5.5.330.0050.02515.69
5.5.320.0210.04315.82
5.5.310.0150.03315.83
5.5.300.0040.02414.58
5.5.290.0120.03714.46
5.5.280.0080.02016.02
5.5.270.0020.02516.07
5.5.260.0020.02815.92
5.5.250.0080.03415.96
5.5.240.0130.03815.71
5.5.230.0000.00911.07
5.5.220.0040.00410.91
5.5.210.0070.00311.07
5.5.200.0030.01011.03
5.5.190.0030.00311.15
5.5.180.0070.00411.03
5.5.170.0060.00610.91
5.5.160.0070.00710.95
5.5.150.0000.01110.89
5.5.140.0030.00811.15
5.5.130.0030.00911.12
5.5.120.0060.00011.25
5.5.110.0030.00911.13
5.5.100.0070.00410.82
5.5.90.0000.01010.91
5.5.80.0000.00710.71
5.5.70.0060.00611.12
5.5.60.0060.00311.18
5.5.50.0000.00710.95
5.5.40.0000.01311.05
5.5.30.0040.00810.96
5.5.20.0060.00010.88
5.5.10.0060.00310.73
5.5.00.0000.01110.93

preferences:
39.42 ms | 401 KiB | 5 Q