3v4l.org

run code in 300+ PHP versions simultaneously
<?php phpversion() >= "7.0.0beta1" or die(); $two_pow_64 = pow(2.,64.); echo "(int) INF: ",(int) INF,"\n"; echo "(int) \$two_pow64: ", (int) $two_pow_64,"\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.0030.01215.15
7.4.00.0030.01315.23
7.3.130.0070.01115.23
7.3.120.0000.01415.13
7.3.110.0090.00914.96
7.3.100.0040.01215.05
7.3.90.0070.00715.02
7.3.80.0060.00615.08
7.3.70.0000.01315.02
7.3.60.0100.00314.94
7.3.50.0090.00614.65
7.3.40.0090.00615.02
7.3.30.0060.00614.93
7.3.20.0100.00716.79
7.3.10.0060.00616.88
7.3.00.0050.00516.47
7.2.260.0100.01015.21
7.2.250.0040.01515.22
7.2.240.0120.00314.85
7.2.230.0030.01315.41
7.2.220.0060.00915.43
7.2.210.0030.00714.95
7.2.200.0100.00315.33
7.2.190.0000.01315.15
7.2.180.0040.01115.32
7.2.170.0120.00615.27
7.2.160.0000.01815.13
7.2.150.0040.00717.04
7.2.140.0060.00617.20
7.2.130.0060.00716.98
7.2.120.0040.01117.11
7.2.110.0030.00917.23
7.2.100.0030.00717.04
7.2.90.0000.01016.69
7.2.80.0030.00717.26
7.2.70.0030.01017.10
7.2.60.0070.00716.99
7.2.50.0000.01717.28
7.2.40.0060.01217.18
7.2.30.0060.00617.27
7.2.20.0080.00417.27
7.2.10.0000.01217.10
7.2.00.0080.00818.42
7.1.330.0090.00616.21
7.1.320.0000.01315.93
7.1.310.0110.00316.04
7.1.300.0130.00316.08
7.1.290.0000.00915.75
7.1.280.0060.01216.05
7.1.270.0070.01016.12
7.1.260.0070.00316.02
7.1.250.0090.00616.03
7.1.240.0040.00716.01
7.1.230.0030.00715.97
7.1.220.0070.00316.07
7.1.210.0000.01216.05
7.1.200.0060.00615.64
7.1.190.0090.00316.10
7.1.180.0030.00515.80
7.1.170.0040.00815.99
7.1.160.0030.01316.04
7.1.150.0030.01016.16
7.1.140.0070.00716.07
7.1.130.0070.00316.02
7.1.120.0040.00815.96
7.1.110.0060.00716.12
7.1.100.0130.00617.18
7.1.90.0000.01315.73
7.1.80.0030.01015.75
7.1.70.0060.00416.74
7.1.60.0060.01317.60
7.1.50.0050.01116.42
7.1.40.0030.00615.88
7.1.30.0030.00915.90
7.1.20.0040.00415.87
7.1.10.0000.01415.65
7.1.00.0070.03719.26
7.0.330.0000.01715.50
7.0.320.0040.00715.60
7.0.310.0090.00315.54
7.0.300.0000.01515.66
7.0.290.0100.00715.43
7.0.280.0120.00315.56
7.0.270.0070.01115.49
7.0.260.0080.00615.25
7.0.250.0100.00315.87
7.0.240.0030.00915.92
7.0.230.0000.00915.63
7.0.220.0100.00315.34
7.0.210.0070.00715.72
7.0.200.0060.00516.26
7.0.190.0030.01415.60
7.0.180.0030.01015.64
7.0.170.0030.01315.70
7.0.160.0070.00715.30
7.0.150.0110.00415.54
7.0.140.0060.00315.35
7.0.130.0000.01515.45
7.0.120.0110.00415.58
7.0.110.0070.00715.59
7.0.100.0080.02517.76
7.0.90.0060.02017.89
7.0.80.0120.02017.73
7.0.70.0000.04117.74
7.0.60.0060.03717.76
7.0.50.0130.02318.04
7.0.40.0040.02516.99
7.0.30.0030.02616.83
7.0.20.0010.03617.01
7.0.10.0070.04316.81
7.0.00.0090.04016.68
5.6.400.0070.00414.18
5.6.390.0110.00314.46
5.6.380.0030.01014.01
5.6.370.0080.00014.34
5.6.360.0100.00714.19
5.6.350.0040.01514.24
5.6.340.0000.01614.34
5.6.330.0110.00714.44
5.6.320.0070.00314.34
5.6.310.0070.00714.11
5.6.300.0030.00714.13
5.6.290.0040.00714.14
5.6.280.0060.03217.84
5.6.270.0040.01414.51
5.6.260.0030.00614.57
5.6.250.0070.02317.48
5.6.240.0060.03017.53
5.6.230.0030.02817.23
5.6.220.0080.02017.46
5.6.210.0070.02317.35
5.6.200.0110.02217.75
5.6.190.0080.02117.62
5.6.180.0050.02317.62
5.6.170.0090.03917.64
5.6.160.0070.04517.49
5.6.150.0050.04417.57
5.6.140.0050.04817.73
5.6.130.0060.04917.71
5.6.120.0110.04317.67
5.6.110.0140.03917.57
5.6.100.0030.03717.64
5.6.90.0070.04517.56
5.6.80.0070.04517.47
5.6.70.0100.04317.30
5.6.60.0070.03917.25
5.6.50.0100.04017.19
5.6.40.0050.03517.19
5.6.30.0080.03717.21
5.6.20.0080.04017.31
5.6.10.0080.03717.21
5.6.00.0170.03317.21
5.5.380.0100.01817.17
5.5.370.0060.02517.31
5.5.360.0100.02417.19
5.5.350.0060.02617.24
5.5.340.0050.02317.39
5.5.330.0050.02517.56
5.5.320.0050.02517.50
5.5.310.0090.03817.48
5.5.300.0060.03217.57
5.5.290.0060.04617.55
5.5.280.0080.03117.61
5.5.270.0110.04117.30
5.5.260.0050.04517.62
5.5.250.0100.04117.28
5.5.240.0080.04017.09
5.5.230.0030.04717.32
5.5.220.0070.04217.14
5.5.210.0070.04017.22
5.5.200.0080.04017.12
5.5.190.0070.04217.15
5.5.180.0140.03917.08
5.5.170.0000.00814.14
5.5.160.0040.04016.96
5.5.150.0100.04017.08
5.5.140.0000.04017.22
5.5.130.0030.04817.21
5.5.120.0120.03517.00
5.5.110.0120.03517.19
5.5.100.0090.04017.08
5.5.90.0080.04417.06
5.5.80.0070.04416.92
5.5.70.0040.04416.96
5.5.60.0070.03917.12
5.5.50.0110.03617.02
5.5.40.0100.04217.07
5.5.30.0050.04817.21
5.5.20.0030.02917.12
5.5.10.0080.04417.02
5.5.00.0080.03517.19
5.4.450.0070.07719.24
5.4.440.0100.05319.27
5.4.430.0130.07319.42
5.4.420.0000.08719.42
5.4.410.0100.07019.22
5.4.400.0100.07319.11
5.4.390.0170.06019.04
5.4.380.0030.08019.09
5.4.370.0000.07018.98
5.4.360.0200.06319.04
5.4.350.0170.06719.13
5.4.340.0070.08019.10
5.4.320.0100.07319.23
5.4.310.0070.07719.04
5.4.300.0130.07318.81
5.4.290.0100.07019.06
5.4.280.0070.07318.96
5.4.270.0200.05719.05
5.4.260.0000.08319.14
5.4.250.0070.07318.99
5.4.240.0030.07319.11
5.4.230.0170.06018.89
5.4.220.0170.06718.83
5.4.210.0070.07718.80
5.4.200.0070.04718.99
5.4.190.0130.07019.04
5.4.180.0030.08018.89
5.4.170.0130.07019.02
5.4.160.0070.08318.95
5.4.150.0100.07719.04
5.4.140.0070.08016.37
5.4.130.0070.07316.28
5.4.120.0130.07016.33
5.4.110.0030.08016.26
5.4.100.0100.07016.26
5.4.90.0100.07016.22
5.4.80.0130.06316.32
5.4.70.0030.07716.39
5.4.60.0030.06316.29
5.4.50.0170.06016.40
5.4.40.0070.07716.27
5.4.30.0070.07716.19
5.4.20.0070.07316.23
5.4.10.0130.06716.30
5.4.00.0130.06015.72
5.3.290.0100.07714.52
5.3.280.0100.09014.45
5.3.270.0030.06714.58
5.3.260.0100.06714.59
5.3.250.0070.07014.46
5.3.240.0030.08014.58
5.3.230.0070.07714.58
5.3.220.0000.08014.43
5.3.210.0070.08014.43
5.3.200.0100.07314.55
5.3.190.0100.07314.38
5.3.180.0030.08314.41
5.3.170.0130.07014.53
5.3.160.0000.08014.56
5.3.150.0100.07014.55
5.3.140.0130.06314.52
5.3.130.0100.07314.50
5.3.120.0030.07714.37
5.3.110.0170.07014.39
5.3.100.0030.08313.97
5.3.90.0000.07714.00
5.3.80.0070.07013.96
5.3.70.0230.05713.92
5.3.60.0170.06013.77
5.3.50.0070.06013.88
5.3.40.0070.07313.95
5.3.30.0030.06013.76
5.3.20.0030.07713.64
5.3.10.0130.06313.61
5.3.00.0070.07313.39
5.2.170.0000.06311.14
5.2.160.0000.06710.98
5.2.150.0030.06311.06
5.2.140.0070.06011.13
5.2.130.0070.03011.14
5.2.120.0070.06011.13
5.2.110.0070.06011.10
5.2.100.0100.03011.13
5.2.90.0030.06711.15
5.2.80.0030.06310.95
5.2.70.0000.06311.16
5.2.60.0100.06010.90
5.2.50.0100.06010.90
5.2.40.0130.05310.90
5.2.30.0030.03710.90
5.2.20.0070.05710.90
5.2.10.0000.04010.90
5.2.00.0030.06010.90
5.1.60.0000.05710.90
5.1.50.0030.05010.90
5.1.40.0070.05310.90
5.1.30.0070.05310.90
5.1.20.0030.06010.90
5.1.10.0070.05310.90
5.1.00.0070.05710.90
5.0.50.0070.03710.90
5.0.40.0000.05010.90
5.0.30.0030.05010.90
5.0.20.0030.03710.90
5.0.10.0070.04010.90
5.0.00.0030.05710.90
4.4.90.0100.03010.90
4.4.80.0070.03010.90
4.4.70.0070.03010.90
4.4.60.0030.02710.90
4.4.50.0030.03310.90
4.4.40.0000.05310.90
4.4.30.0100.02710.90
4.4.20.0030.03710.90
4.4.10.0070.01310.90
4.4.00.0000.05710.90
4.3.110.0100.02710.90
4.3.100.0100.02710.90
4.3.90.0030.02310.90
4.3.80.0030.03010.90
4.3.70.0030.03310.90
4.3.60.0070.02010.90
4.3.50.0000.04010.90
4.3.40.0070.03710.90
4.3.30.0030.02010.90
4.3.20.0000.02010.90
4.3.10.0000.03710.90
4.3.00.0000.02710.90

preferences:
40.7 ms | 400 KiB | 5 Q