3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = '123123123123123123123'; $b = '123123123123123123124'; $c = '1231231231231231231234'; var_dump($a == $b); var_dump($a == $c); var_dump((int) $a === (int) $b); var_dump((int) $a === (int) $c); var_dump((int)$a == $a);
based on 42lqK

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.3.0rc40.0150.00398.97
7.3.0rc30.0220.00016.36
7.3.0beta10.0030.00512.57
7.3.0alpha10.0030.00712.64
7.2.60.0380.00816.41
7.2.00.0030.01419.18
7.1.200.0080.00415.51
7.1.100.0060.00618.15
7.1.70.0000.01017.17
7.1.60.0100.01419.32
7.1.50.0130.00916.57
7.1.00.0000.07722.31
7.0.200.0030.00616.86
7.0.140.0030.07322.15
7.0.110.0300.05019.98
7.0.100.0200.05019.93
7.0.90.0200.04319.92
7.0.80.0130.03719.96
7.0.70.0430.04019.88
7.0.60.0700.07019.84
7.0.50.0700.07020.26
7.0.40.0100.07720.19
7.0.30.0070.08320.23
7.0.20.0070.08320.16
7.0.10.0070.08020.04
7.0.00.0100.07020.11
5.6.280.0030.07320.99
5.6.260.0070.03720.73
5.6.250.0030.04320.67
5.6.240.0030.04720.64
5.6.230.0000.04320.61
5.6.220.0000.04720.54
5.6.210.0130.07020.52
5.6.200.0100.05721.26
5.6.190.0170.07021.18
5.6.180.0230.06020.98
5.6.170.0130.08321.13
5.6.160.0070.05021.07
5.6.150.0100.07720.91
5.6.140.0070.08021.08
5.6.130.0100.06721.08
5.6.120.0130.04721.04
5.6.110.0000.08321.13
5.6.100.0100.07021.07
5.6.90.0100.08020.96
5.6.80.0100.08020.46
5.6.70.0100.07020.59
5.6.60.0100.08020.44
5.6.50.0100.07720.66
5.6.40.0030.08020.49
5.6.30.0130.07020.62
5.6.20.0230.06020.39
5.6.10.0130.07720.29
5.6.00.0030.06720.38
5.5.380.0100.06320.40
5.5.370.0030.04020.45
5.5.360.0000.04320.55
5.5.350.0100.07320.43
5.5.340.0170.07020.80
5.5.330.0070.08720.96
5.5.320.0070.08720.87
5.5.310.0130.04720.80
5.5.300.0030.08020.89
5.5.290.0030.07020.77
5.5.280.0070.07320.89
5.5.270.0030.06020.97
5.5.260.0100.06320.93
5.5.250.0100.07720.77
5.5.240.0170.04020.35
5.5.230.0030.08320.27
5.5.220.0130.08020.35
5.5.210.0030.08320.18
5.5.200.0070.08020.16
5.5.190.0170.07020.14
5.5.180.0070.08320.33
5.5.160.0170.06720.23
5.5.150.0030.08320.24
5.5.140.0170.07320.18
5.5.130.0100.07720.23
5.5.120.0030.07320.09
5.5.110.0030.08020.35
5.5.100.0100.07720.02
5.5.90.0130.07320.20
5.5.80.0070.08020.22
5.5.70.0030.08020.06
5.5.60.0030.08019.98
5.5.50.0130.07020.03
5.5.40.0200.06720.20
5.5.30.0170.06320.22
5.5.20.0130.04320.22
5.5.10.0070.08320.01
5.5.00.0100.08019.91
5.4.450.0070.08319.34
5.4.440.0030.07719.41
5.4.430.0100.05319.50
5.4.420.0130.07019.40
5.4.410.0070.05319.16
5.4.400.0100.04019.16
5.4.390.0200.06718.93
5.4.380.0070.07018.91
5.4.370.0070.07019.05
5.4.360.0070.08019.12
5.4.350.0070.07018.93
5.4.340.0130.07019.08
5.4.320.0130.07719.03
5.4.310.0130.05718.93
5.4.300.0100.07718.95
5.4.290.0200.06719.00
5.4.280.0070.06018.98
5.4.270.0070.07719.12
5.4.260.0100.06719.07
5.4.250.0100.07019.25
5.4.240.0130.06719.07
5.4.230.0000.08319.26
5.4.220.0070.07319.11
5.4.210.0130.06719.02
5.4.200.0030.07319.02
5.4.190.0130.07019.02
5.4.180.0130.07018.91
5.4.170.0030.05718.97
5.4.160.0070.07019.09
5.4.150.0130.06719.23
5.4.140.0070.07016.23
5.4.130.0070.05016.17
5.4.120.0130.06016.20
5.4.110.0170.04016.28
5.4.100.0100.07016.36
5.4.90.0070.07716.36
5.4.80.0130.06016.17
5.4.70.0030.03716.39
5.4.60.0030.03716.46
5.4.50.0000.05016.45
5.4.40.0130.07316.40
5.4.30.0100.06316.38
5.4.20.0100.06716.20
5.4.10.0030.06716.34
5.4.00.0100.07015.81
5.3.290.0030.08014.61
5.3.280.0100.07314.60
5.3.270.0070.07714.39
5.3.260.0070.07714.48
5.3.250.0070.07314.47
5.3.240.0030.08314.45
5.3.230.0130.06314.38
5.3.220.0130.06714.66
5.3.210.0070.07314.49
5.3.200.0170.06714.66
5.3.190.0170.05314.47
5.3.180.0070.07014.57
5.3.170.0100.05014.43
5.3.160.0000.04014.43
5.3.150.0100.07014.66
5.3.140.0170.06714.63
5.3.130.0100.07314.41
5.3.120.0070.07314.49
5.3.110.0130.06714.34
5.3.100.0000.08314.11
5.3.90.0100.04013.87
5.3.80.0170.06013.93
5.3.70.0000.08013.95
5.3.60.0200.05713.90
5.3.50.0070.07013.86
5.3.40.0030.04713.87
5.3.30.0030.07013.80
5.3.20.0170.03313.62
5.3.10.0130.06013.67
5.3.00.0100.06713.60
5.2.170.0130.02311.87
5.2.160.0070.05711.87
5.2.150.0030.05711.87
5.2.140.0000.07011.87
5.2.130.0070.05711.87
5.2.120.0070.06311.87
5.2.110.0000.06711.87
5.2.100.0030.05711.87
5.2.90.0030.05311.87
5.2.80.0070.03711.87
5.2.70.0030.03711.87
5.2.60.0030.05711.87
5.2.50.0100.06011.87
5.2.40.0070.06311.87
5.2.30.0030.06311.87
5.2.20.0100.05711.87
5.2.10.0070.06011.87
5.2.00.0100.05711.87
5.1.60.0030.03311.87
5.1.50.0070.05311.87
5.1.40.0070.05311.87
5.1.30.0070.04311.87
5.1.20.0070.05711.87
5.1.10.0070.05311.87
5.1.00.0100.04711.87
5.0.50.0070.04311.87
5.0.40.0130.03311.87
5.0.30.0100.06011.87
5.0.20.0000.04711.87
5.0.10.0000.03711.87
5.0.00.0070.05311.87
4.4.90.0000.03711.87
4.4.80.0000.03711.87
4.4.70.0070.03311.87
4.4.60.0000.03311.87
4.4.50.0030.04711.87
4.4.40.0030.05011.87
4.4.30.0000.03711.87
4.4.20.0000.04011.87
4.4.10.0030.03311.87
4.4.00.0030.05311.87
4.3.110.0070.03011.87
4.3.100.0100.02711.87
4.3.90.0070.03011.87
4.3.80.0030.05011.87
4.3.70.0030.03711.87
4.3.60.0000.02011.87
4.3.50.0000.03711.87
4.3.40.0000.05311.87
4.3.30.0030.03311.87
4.3.20.0000.03711.87
4.3.10.0000.03011.87
4.3.00.0000.03711.87