3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function bitcoin_address_pair(){ /*$script = dirname(__FILE__)."/botg.sh"; exec($script, $result); $result = array_map('trim', $result); $priv = $result[2]; $pub = $result[4]; return array('private'=>$priv, 'public'=>$pub); */ "hello"; } ?> <?php echo "<pre>\n"; print (bitcoin_address_pair()); ?>

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).
Note: hhvm uses a JIT which only kicks in after a few runs. Since we run scripts only once, hhvm always runs slower.

VersionSystem time (s)User time (s)Memory (MiB)
7.2.00.0060.00619.19
7.1.100.0050.01117.93
7.1.70.0070.00716.65
7.1.60.0070.01819.46
7.1.50.0150.01216.56
7.1.00.0070.07322.40
7.0.200.0060.00616.65
7.0.140.0030.07322.15
7.0.60.0130.07720.00
7.0.50.0030.07717.89
7.0.40.0000.07320.25
7.0.30.0300.07720.25
7.0.20.0300.05020.23
7.0.10.0070.08720.30
7.0.00.0030.04720.15
5.6.280.0030.07320.89
5.6.210.0070.06720.75
5.6.200.0130.07318.29
5.6.190.0030.04320.65
5.6.180.0000.09020.41
5.6.170.0230.04020.45
5.6.160.0100.03720.71
5.6.150.0170.06318.16
5.6.140.0070.04718.14
5.6.130.0070.03718.18
5.6.120.0100.04021.15
5.6.110.0200.06720.99
5.6.100.0170.08321.01
5.6.90.0100.07720.99
5.6.80.0070.08720.39
5.5.350.0070.08020.42
5.5.340.0030.03718.04
5.5.330.0100.05320.57
5.5.320.0330.07320.20
5.5.310.0330.07320.30
5.5.300.0100.07717.98
5.5.290.0100.07317.98
5.5.280.0030.05320.65
5.5.270.0100.08320.68
5.5.260.0100.03720.79
5.5.250.0070.06320.70
5.5.240.0070.07320.37
5.4.450.0170.05019.62
5.4.440.0400.06319.48
5.4.430.1200.07319.38
5.4.420.0830.06319.51
5.4.410.0130.06319.39
5.4.400.1300.08019.30
5.4.390.1230.05719.20
5.4.380.0200.04718.67
5.4.370.0130.05018.47
5.4.360.0130.05018.73
5.4.350.0000.07018.48
5.4.340.0130.05718.80
5.4.320.0040.04012.50
5.4.310.0040.03912.50
5.4.300.0120.04512.50
5.4.290.0120.04912.49
5.4.280.0070.05312.39
5.4.270.0110.05212.39
5.4.260.0100.06812.39
5.4.250.0100.05712.40
5.4.240.0120.05212.40
5.4.230.0080.05912.38
5.4.220.0140.06212.38
5.4.210.0130.05412.38
5.4.200.0060.07712.39
5.4.190.0100.05812.38
5.4.180.0080.05412.39
5.4.170.0060.05312.39
5.4.160.0070.05012.38
5.4.150.0060.05112.38
5.4.140.0070.05212.07
5.4.130.0090.04712.05
5.4.120.0050.04212.02
5.4.110.0070.05012.01
5.4.100.0030.05212.01
5.4.90.0070.05312.01
5.4.80.0080.05112.01
5.4.70.0090.04812.00
5.4.60.0090.04912.01
5.4.50.0140.05312.01
5.4.40.0080.05312.00
5.4.30.0090.05811.98
5.4.20.0080.05411.99
5.4.10.0090.05111.99
5.4.00.0090.05211.48
5.3.290.0080.03712.80
5.3.280.0060.06112.71
5.3.270.0100.05412.73
5.3.260.0080.05512.72
5.3.250.0090.05212.72
5.3.240.0060.05612.72
5.3.230.0080.05112.70
5.3.220.0090.05512.68
5.3.210.0050.06012.68
5.3.200.0070.05412.68
5.3.190.0070.05512.68
5.3.180.0080.05312.68
5.3.170.0100.07112.67
5.3.160.0150.06112.67
5.3.150.0060.05612.68
5.3.140.0090.05312.66
5.3.130.0110.05212.66
5.3.120.0060.05712.66
5.3.110.0100.05212.66
5.3.100.0080.05212.12
5.3.90.0110.06212.10
5.3.80.0080.05612.09
5.3.70.0100.05012.08
5.3.60.0090.04912.07
5.3.50.0110.05812.02
5.3.40.0120.05112.02
5.3.30.0090.05111.97
5.3.20.0090.04911.76
5.3.10.0110.04911.73
5.3.00.0110.05311.71
5.2.170.0090.0559.21
5.2.160.0030.0459.21
5.2.150.0080.0589.21
5.2.140.0040.0499.20
5.2.130.0070.0489.16
5.2.120.0080.0449.16
5.2.110.0090.0419.18
5.2.100.0070.0439.17
5.2.90.0050.0449.17
5.2.80.0080.0409.16
5.2.70.0080.0409.17
5.2.60.0080.0419.12
5.2.50.0090.0429.09
5.2.40.0070.0429.06
5.2.30.0090.0429.04
5.2.20.0060.0429.04
5.2.10.0050.0428.94
5.2.00.0080.0428.80
5.1.60.0070.0368.08
5.1.50.0070.0348.07
5.1.40.0060.0328.06
5.1.30.0030.0378.41
5.1.20.0060.0248.43
5.1.10.0050.0258.16
5.1.00.0050.0268.16
5.0.50.0030.0216.63
5.0.40.0060.0176.49
5.0.30.0000.0366.30
5.0.20.0060.0186.28
5.0.10.0050.0296.25
5.0.00.0030.0426.24
4.4.90.0040.0164.78
4.4.80.0030.0174.76
4.4.70.0030.0164.76
4.4.60.0030.0164.76
4.4.50.0020.0174.77
4.4.40.0040.0244.70
4.4.30.0030.0164.76
4.4.20.0030.0164.84
4.4.10.0010.0174.85
4.4.00.0030.0254.76
4.3.110.0030.0154.67
4.3.100.0040.0144.66
4.3.90.0040.0144.64
4.3.80.0050.0234.58
4.3.70.0040.0154.63
4.3.60.0030.0164.63
4.3.50.0040.0164.63
4.3.40.0020.0264.53
4.3.30.0020.0193.29
4.3.20.0030.0243.27
4.3.10.0030.0203.23
4.3.00.0170.0177.44