3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = 129; $y = 1; $m = microtime(true); $y = 1 << ceil(log($x, 2)); echo (microtime(true) - $m), "\n\r"; $y = 1; $m = microtime(true); while ($y < $x) { $y = $y <<1; } echo microtime(true) - $m;

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.0100.00719.72
7.1.70.0070.00717.47
7.1.60.0150.00919.24
7.1.50.0140.01117.16
7.1.00.0030.05322.63
7.0.200.0000.00817.07
7.0.140.0070.07022.22
7.0.70.0030.08321.96
7.0.60.0070.08322.05
7.0.50.0070.08022.50
7.0.40.0070.06320.39
7.0.30.0100.08320.36
7.0.20.0070.07320.33
7.0.10.0030.08320.48
7.0.00.0030.08720.46
5.6.280.0000.07721.24
5.6.220.0030.08720.92
5.6.210.0000.05320.73
5.6.200.0030.09021.45
5.6.190.0070.07721.24
5.6.180.0030.06321.29
5.6.170.0070.07721.42
5.6.160.0100.08021.33
5.6.150.0030.06721.33
5.6.140.0070.04321.39
5.6.130.0100.07721.34
5.6.120.0030.05721.29
5.6.110.0070.07321.23
5.6.100.0200.05721.27
5.6.90.0030.07721.29
5.6.80.0000.08320.66
5.6.70.0030.04020.68
5.6.60.0000.08320.71
5.6.50.0100.05320.83
5.6.40.0030.07720.66
5.6.30.0000.05020.60
5.6.20.0100.07320.80
5.6.10.0000.08020.70
5.6.00.0130.05720.60
5.5.360.0130.07020.61
5.5.350.0070.05720.70
5.5.340.0000.06721.11
5.5.330.0000.07721.06
5.5.320.0030.07721.07
5.5.310.0000.05021.06
5.5.300.0030.07321.20
5.5.290.0130.04721.11
5.5.280.0070.08321.07
5.5.270.0070.07721.15
5.5.260.0070.08320.91
5.5.250.0030.08320.89
5.5.240.0030.04020.55
5.5.230.0070.05320.42
5.5.220.0030.05720.53
5.5.210.0000.07020.42
5.5.200.0070.07720.47
5.5.190.0070.05020.46
5.5.180.0100.06720.55
5.5.160.0030.08020.43
5.5.150.0000.08320.39
5.5.140.0030.07720.27
5.5.130.0030.07020.46
5.5.120.0000.04320.37
5.5.110.0100.05720.52
5.5.100.0070.06720.35
5.5.90.0070.07320.41
5.5.80.0070.08020.29
5.5.70.0100.08020.38
5.5.60.0070.06720.40
5.5.50.0000.08020.28
5.5.40.0070.07720.37
5.5.30.0100.07720.46
5.5.20.0100.04720.20
5.5.10.0030.08320.32
5.5.00.0100.06020.31
5.4.450.0030.06019.64
5.4.440.0030.06319.59
5.4.430.0000.08019.61
5.4.420.0030.06719.68
5.4.410.0030.08319.50
5.4.400.0000.04319.48
5.4.390.0030.04019.21
5.4.380.0030.03719.15
5.4.370.0100.07319.48
5.4.360.0030.06019.29
5.4.350.0030.06319.12
5.4.340.0030.06719.34
5.4.320.0100.07319.32
5.4.310.0100.07719.21
5.4.300.0030.07719.37
5.4.290.0000.07319.34
5.4.280.0030.05019.32
5.4.270.0030.08019.23
5.4.260.0000.06719.14
5.4.250.0070.06319.27
5.4.240.0000.06319.36
5.4.230.0000.05319.32
5.4.220.0000.08319.34
5.4.210.0030.04719.34
5.4.200.0030.05319.34
5.4.190.0000.07719.29
5.4.180.0000.05019.20
5.4.170.0030.08319.02
5.4.160.0070.04719.30
5.4.150.0000.07719.34
5.4.140.0070.05016.66
5.4.130.0030.07716.57
5.4.120.0030.05016.36
5.4.110.0070.07716.56
5.4.100.0030.06016.61
5.4.90.0030.07716.58
5.4.80.0070.05016.51
5.4.70.0030.06316.59
5.4.60.0070.04316.55
5.4.50.0030.04716.58
5.4.40.0000.03716.63
5.4.30.0070.07316.48
5.4.20.0030.06716.58
5.4.10.0070.07716.61
5.4.00.0000.07716.02
5.3.290.0030.07014.81
5.3.280.0000.08314.70
5.3.270.0070.07014.84
5.3.260.0030.07714.76
5.3.250.0000.07714.81
5.3.240.0030.07014.84
5.3.230.0100.07014.76
5.3.220.0000.07314.82
5.3.210.0030.07714.68
5.3.200.0000.07714.80
5.3.190.0000.06714.75
5.3.180.0000.08714.67
5.3.170.0030.08014.68
5.3.160.0100.07014.77
5.3.150.0070.03714.68
5.3.140.0030.04314.75
5.3.130.0030.08014.65
5.3.120.0000.07714.74
5.3.110.0070.08014.69
5.3.100.0070.07314.25
5.3.90.0000.06714.13
5.3.80.0030.06714.12
5.3.70.0070.05714.10
5.3.60.0070.07014.11
5.3.50.0030.07314.18
5.3.40.0070.07314.15
5.3.30.0000.06314.02
5.3.20.0070.03713.91
5.3.10.0070.06713.88
5.3.00.0000.04713.74
5.2.170.0070.06012.36
5.2.160.0100.05312.36
5.2.150.0030.06712.36
5.2.140.0030.04312.36
5.2.130.0070.02712.36
5.2.120.0030.02712.36
5.2.110.0030.04712.36
5.2.100.0000.03012.36
5.2.90.0000.02712.36
5.2.80.0030.03012.36
5.2.70.0000.03012.36
5.2.60.0030.03312.36
5.2.50.0000.04312.36
5.2.40.0000.03012.36
5.2.30.0000.03012.36
5.2.20.0000.03012.36
5.2.10.0030.02712.36
5.2.00.0070.05712.36
5.1.60.0070.02012.36
5.1.50.0030.04712.36
5.1.40.0000.02712.36
5.1.30.0000.02712.36
5.1.20.0000.02712.36
5.1.10.0070.02012.36
5.1.00.0030.02312.36
5.0.50.0070.03312.36
5.0.40.0030.03012.36
5.0.30.0000.03012.36
5.0.20.0000.02012.36
5.0.10.0000.02012.36
5.0.00.0000.03012.36
4.4.90.0000.01712.36
4.4.80.0030.01312.36
4.4.70.0000.01312.36
4.4.60.0000.03712.36
4.4.50.0000.02312.36
4.4.40.0000.04012.36
4.4.30.0030.01712.36
4.4.20.0000.01712.36
4.4.10.0000.01712.36
4.4.00.0030.02312.36
4.3.110.0030.01312.36
4.3.100.0000.01712.36
4.3.90.0000.01312.36
4.3.80.0000.04712.36
4.3.70.0000.01312.36
4.3.60.0000.01712.36
4.3.50.0000.02012.36
4.3.40.0000.02312.36
4.3.30.0000.02012.36
4.3.20.0030.03712.36
4.3.10.0000.01712.36
4.3.00.0000.01712.36

preferences:
30.96 ms | 401 KiB | 5 Q