3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = '00200010869000'; $b = (int) $a; echo "$a\n$b";

Here you find the average performance (time & memory) of each version. A greyed 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.0070.00719.40
7.1.100.0060.00618.18
7.1.70.0000.01417.05
7.1.60.0030.01719.46
7.1.50.0090.01316.80
7.1.00.0000.08022.36
7.0.200.0000.00716.78
7.0.140.0100.06722.00
7.0.60.0130.06319.92
7.0.50.0070.06717.80
7.0.40.0070.06020.07
7.0.30.0170.08720.02
7.0.20.0270.07720.33
7.0.10.0070.05020.18
7.0.00.0030.04020.20
5.6.280.0030.07321.08
5.6.210.0130.07020.70
5.6.200.0030.07718.23
5.6.190.0070.06720.35
5.6.180.0230.05320.57
5.6.170.0270.05020.33
5.6.160.0100.08020.49
5.6.150.0000.05718.15
5.6.140.0070.04318.18
5.6.130.0030.04718.16
5.6.120.0170.08320.98
5.6.110.0000.06321.12
5.6.100.0000.07320.98
5.6.90.0070.08321.11
5.6.80.0030.06320.50
5.5.350.3870.04020.37
5.5.340.0130.07317.93
5.5.330.0230.03720.46
5.5.320.0230.06020.18
5.5.310.0330.07020.18
5.5.300.0070.07717.93
5.5.290.0130.07317.88
5.5.280.0030.04720.87
5.5.270.0130.07720.71
5.5.260.0170.07720.87
5.5.250.0030.07720.68
5.5.240.0200.06020.20
5.4.450.3170.04719.25
5.4.440.3130.04019.40
5.4.430.2870.03719.40
5.4.420.2770.04019.48
5.4.410.3030.03319.13
5.4.400.2730.04318.81
5.4.390.3270.03718.93
5.4.380.3500.03718.80
5.4.370.3230.04018.81
5.4.360.2730.03719.08
5.4.350.3200.03318.77
5.4.340.3100.03319.16
5.4.320.2970.04019.06
5.4.310.2870.02719.24
5.4.300.2700.04719.13
5.4.290.2600.02719.21
5.4.280.3300.03719.13
5.4.270.3170.03719.08
5.4.260.2800.04318.88
5.4.250.2930.04018.93
5.4.240.2770.04319.15
5.4.230.3170.04019.23
5.4.220.3030.02719.21
5.4.210.2700.04318.80
5.4.200.3230.04018.88
5.4.190.3100.03318.87
5.4.180.2900.03719.09
5.4.170.2530.04019.23
5.4.160.3200.03719.14
5.4.150.3270.04019.07
5.4.140.3530.03316.38
5.4.130.3170.03716.25
5.4.120.3130.04016.43
5.4.110.3100.03316.38
5.4.100.3030.03316.43
5.4.90.2870.03316.43
5.4.80.3170.03716.32
5.4.70.3200.03716.37
5.4.60.2730.03316.45
5.4.50.2530.03016.36
5.4.40.2530.03716.43
5.4.30.3030.03316.40
5.4.20.3370.03016.31
5.4.10.3270.03716.36
5.4.00.3030.03015.67
5.3.290.3030.03714.60
5.3.280.3270.03714.43
5.3.270.3170.04714.54
5.3.260.2930.04314.58
5.3.250.2600.03714.46
5.3.240.3000.03714.45
5.3.230.2970.03314.43
5.3.220.2500.03714.41
5.3.210.3130.04314.61
5.3.200.2730.03014.42
5.3.190.3300.03714.44
5.3.180.2730.03314.41
5.3.170.2770.03314.42
5.3.160.3000.03714.65
5.3.150.3100.03014.42
5.3.140.3170.04014.64
5.3.130.2570.03014.40
5.3.120.3300.03314.56
5.3.110.3030.04014.45
5.3.100.3030.03313.91
5.3.90.3000.03013.85
5.3.80.3230.03313.95
5.3.70.2770.04013.79
5.3.60.2330.03714.10
5.3.50.3030.03013.74
5.3.40.2500.03313.85
5.3.30.3000.03313.68
5.3.20.2500.03313.62
5.3.10.2930.04013.45
5.3.00.2700.03713.59
5.2.170.2530.02311.04
5.2.160.2270.02711.04
5.2.150.1770.02711.04
5.2.140.2000.03011.08
5.2.130.2370.03311.04
5.2.120.2500.03011.04
5.2.110.2100.03311.04
5.2.100.1970.03311.04
5.2.90.2600.03011.11
5.2.80.2000.02711.04
5.2.70.2230.03011.04
5.2.60.2500.03011.04
5.2.50.2430.03311.04
5.2.40.1570.02311.04
5.2.30.2030.03311.04
5.2.20.1730.03311.04
5.2.10.2330.03311.04
5.2.00.1770.03311.04
5.1.60.2300.02711.04
5.1.50.2100.03311.04
5.1.40.2030.02311.04
5.1.30.1730.02711.04
5.1.20.2330.03011.04
5.1.10.2200.02711.04
5.1.00.2000.03011.04
5.0.50.0570.02311.04
5.0.40.1000.02011.04
5.0.30.1370.02711.04
5.0.20.1130.02711.04
5.0.10.1200.02711.04
5.0.00.0700.05011.04
4.4.90.0770.01311.04
4.4.80.0830.02011.04
4.4.70.1100.01711.04
4.4.60.1070.01011.04
4.4.50.1030.01311.04
4.4.40.1030.02311.04
4.4.30.1230.01711.04
4.4.20.1400.01011.04
4.4.10.1200.01711.04
4.4.00.0470.02711.04
4.3.110.1000.01311.04
4.3.100.0830.02011.04
4.3.90.0930.02311.04
4.3.80.1170.02711.04
4.3.70.1200.01711.04
4.3.60.1270.01711.04
4.3.50.1070.01311.04
4.3.40.1030.02311.04
4.3.30.0630.02711.04
4.3.20.0600.02711.04
4.3.10.0070.01011.04
4.3.00.0600.02311.04