3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(base64_decode('X3NmMl9hdHRyaWJ1dGVzfGE6MDp7fV9zZjJfZmxhc2hlc3xhOjA6e31fc2YyX3NoYXJlZHxhOjA6e31fc2YyX21ldGF8YTozOntzOjE6InUiO2k6MTM4NzM3MDAyNTtzOjE6ImMiO2k6MTM4NzM3MDAyMztzOjE6ImwiO3M6NDoiMzYwMCI7fWxhc3RVc2VkfGk6MTM4NzM3MDAzMDtzaXRlRGVmfE86MTA6ImFtYXh1c3NpdGUiOjI2OntzOjk6InRhYmxlTmFtZSI7czoxMDoiYW1heHVzU2l0ZSI7czo2OiJhRmllbGQiO2E6MDp7fXM6MTA6ImFGaWVsZE5hbWUiO2E6NDY6e2k6MDtzOjEyOiJhbWF4dXNTaXRlSWQiO2k6MTtzOjE2OiJpc015U2l0ZVRlbXBsYXRlIjtpOjI7czo4OiJzaXRlTmFtZSI7aTozO3M6MTA6InNpdGVEb21haW4iO2k6NDtzOjExOiJzaXRlV2ViUm9vdCI7aTo1O3M6MTI6InNpdGVOYXZDYXRJZCI7aTo2O3M6ODoic2l0ZUNvZGUiO2k6NztzOjY6ImRiSG9zdCI7aTo4O3M6NjoiZGJUeXBlIjtpOjk7czo2OiJkYk5hbWUiO2k6MTA7czo2OiJkYlVzZXIiO2k6MTE7czo2OiJkYlBhc3MiO2k6MTI7czo2OiJkYlBlcnMiO2k6MTM7czoxMToic3RhZ2VEb21haW4iO2k6MTQ7czoxMjoic3RhZ2VXZWJSb290IjtpOjE1O3M6MTY6Imluc3RhbGxlZE1vZHVsZXMiO2k6MTY7czoxMDoiZGVmYXVsdFVybCI7aToxNztzOjY6InRodW1icyI7aToxODtzOjY6ImltYWdlcyI7aToxOTtzOjExOiJwZXJzb25hbGlzZSI7aToyMDtzOjE4OiJwZXJzb25hbGlzZUluaFR5cGUiO2k6MjE7czoxMToicmV3cml0ZVVSTHMiO2k6MjI7czoxMToieGh0bWxPdXRwdXQiO2k6MjM7cz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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.60.0080.00016.46
7.2.00.0100.00319.30
7.1.200.0210.00515.43
7.1.100.0060.00617.73
7.1.70.0000.00917.09
7.1.60.0090.00619.17
7.1.50.0090.01516.75
7.1.00.0030.06022.43
7.0.200.0040.00416.45
7.0.140.0100.07022.09
7.0.60.0000.04720.00
7.0.50.0100.08017.80
7.0.40.0100.10020.23
7.0.30.0200.07020.02
7.0.20.0270.06720.00
7.0.10.0270.08320.12
7.0.00.0100.05020.21
5.6.280.0070.06721.11
5.6.210.0070.05320.71
5.6.200.0070.08018.15
5.6.190.0130.08020.56
5.6.180.0200.03720.46
5.6.170.0270.07720.49
5.6.160.0070.08720.38
5.6.150.0070.08318.11
5.6.140.0030.06318.16
5.6.130.0000.05018.20
5.6.120.0100.04320.96
5.6.110.0170.06721.02
5.6.100.0000.05321.03
5.6.90.0130.08020.98
5.6.80.0170.06720.38
5.6.70.0270.06720.38
5.5.350.0330.07320.44
5.5.340.0000.04317.92
5.5.330.0070.04320.25
5.5.320.0000.04720.47
5.5.310.0300.07720.41
5.5.300.0030.04017.86
5.5.290.0070.03717.92
5.5.280.0130.05720.77
5.5.270.0100.05720.63
5.5.260.0000.04320.88
5.5.250.0070.06320.69
5.5.240.0070.03320.21
5.4.450.0230.06719.41
5.4.440.0200.06019.13
5.4.430.0200.07319.13
5.4.420.0270.07719.11
5.4.410.0170.05019.33
5.4.400.0170.04319.14
5.4.390.0170.07019.13
5.4.380.0270.04719.16
5.4.370.0230.07719.16
5.4.360.0270.04318.88
5.4.350.0300.06718.79
5.4.340.0270.07018.85
5.4.320.0200.08019.09
5.4.310.0200.06718.93
5.4.300.0270.06718.91
5.4.290.0230.06719.08
5.4.280.0300.05319.09
5.4.270.0200.03719.25
5.4.260.0330.04319.08
5.4.250.0130.04718.78
5.4.240.0200.06319.25
5.4.230.0230.06719.07
5.4.220.0230.06318.78
5.4.210.0300.06019.09
5.4.200.0330.05319.24
5.4.190.0230.07018.78
5.4.180.0200.05718.87
5.4.170.0270.06719.15
5.4.160.0200.07319.21
5.4.150.0200.05719.13
5.4.140.0170.06316.34
5.4.130.0170.03016.17
5.4.120.0270.04016.31
5.4.110.0130.03716.46
5.4.100.0170.03316.43
5.4.90.0200.03316.30
5.4.80.0070.04016.37
5.4.70.0200.03016.46
5.4.60.0170.03316.20
5.4.50.0170.03716.28
5.4.40.0170.03316.28
5.4.30.0170.03316.31
5.4.20.0130.03716.40
5.4.10.0200.03016.35
5.4.00.0130.03315.73
5.3.290.0230.05714.62
5.3.280.0230.03714.44
5.3.270.0270.06314.54
5.3.260.0230.04314.51
5.3.250.0100.04714.45
5.3.240.0230.04714.63
5.3.230.0130.04314.50
5.3.220.0070.04714.47
5.3.210.0370.03014.42
5.3.200.0100.04314.39
5.3.190.0100.04314.44
5.3.180.0130.03714.67
5.3.170.0230.04314.49
5.3.160.0130.03714.39
5.3.150.0070.04014.40
5.3.140.0100.04014.41
5.3.130.0100.04014.39
5.3.120.0130.03714.50
5.3.110.0130.04014.48
5.3.100.0130.03713.88
5.3.90.0100.04013.97
5.3.80.0100.03713.89
5.3.70.0130.03713.92
5.3.60.0100.04314.03
5.3.50.0330.02713.98
5.3.40.0170.03313.82
5.3.30.0170.04313.86
5.3.20.0230.03313.68
5.3.10.0070.04013.53
5.3.00.0100.04013.51
5.2.170.0170.02312.23
5.2.160.0100.03012.23
5.2.150.0100.03012.23
5.2.140.0100.03012.23
5.2.130.0130.02712.23
5.2.120.0130.02712.23
5.2.110.0130.02712.23
5.2.100.0170.02312.23
5.2.90.0100.03312.23
5.2.80.0070.03312.23
5.2.70.0170.02712.23
5.2.60.0130.03012.23
5.2.50.0170.02712.23
5.2.40.0130.03012.23
5.2.30.0070.03012.23
5.2.20.0030.03312.23
5.2.10.0070.03012.23
5.2.00.0100.03312.23
5.1.60.0130.02312.23
5.1.50.0100.05712.23
5.1.40.0170.01712.23
5.1.30.0030.03012.23
5.1.20.0130.03712.23
5.1.10.0130.05012.23
5.1.00.0170.04712.23
5.0.50.0070.04012.23
5.0.40.0070.02012.24
5.0.30.0100.06012.24
5.0.20.0100.02312.24
5.0.10.0130.02012.24
5.0.00.0100.05012.24
4.4.90.0030.01712.23
4.4.80.0070.01312.23
4.4.70.0030.01712.23
4.4.60.0030.01712.23
4.4.50.0070.01712.23
4.4.40.0070.03312.23
4.4.30.0030.01712.23
4.4.20.0030.02312.23
4.4.10.0070.03712.23
4.4.00.0070.02312.23
4.3.110.0000.02012.24
4.3.100.0030.03012.24
4.3.90.0030.02012.24
4.3.80.0170.04312.24
4.3.70.0070.01712.24
4.3.60.0130.02712.24
4.3.50.0070.01712.24
4.3.40.0070.02312.24
4.3.30.0030.02012.24
4.3.20.0100.03312.24
4.3.10.0030.02712.24
4.3.00.0030.02312.24