3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = new stdClass; $a->a = new stdClass; $a->a->a = new stdClass; $a->a->a->a = 'a'; $a = [ 'a' => [ 'a' => [ 'a' => 'a' ] ] ]; $b = $a->a; var_dump($b); var_dump($b['a'] = 'c'); var_dump($a);

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.110.0030.01016.52
7.2.100.0000.01416.56
7.2.90.0000.01316.60
7.2.80.0000.01116.53
7.2.70.0040.00816.89
7.2.60.0050.01216.74
7.2.50.0060.00816.89
7.2.40.0070.00716.85
7.2.30.0080.00316.88
7.2.20.0040.00716.80
7.2.10.0060.00316.69
7.2.00.0160.00817.81
7.1.230.0090.00615.53
7.1.220.0060.00915.80
7.1.210.0000.00715.77
7.1.200.0050.00915.91
7.1.190.0030.01015.69
7.1.180.0070.00315.70
7.1.170.0090.00315.55
7.1.160.0070.00315.58
7.1.150.0060.00315.50
7.1.140.0030.01015.65
7.1.130.0090.00315.59
7.1.120.0060.00915.94
7.1.110.0090.00315.66
7.1.100.0080.00617.09
7.1.90.0000.01315.52
7.1.80.0080.00315.99
7.1.70.0090.00016.40
7.1.60.0060.00717.78
7.1.50.0100.01016.33
7.1.40.0110.00315.55
7.1.30.0090.00915.82
7.1.20.0130.00315.96
7.1.10.0040.00815.58
7.1.00.0050.03819.07
7.0.310.0030.00615.04
7.0.300.0060.00615.21
7.0.290.0060.00615.26
7.0.280.0080.00615.41
7.0.270.0120.00315.46
7.0.260.0040.00415.17
7.0.250.0070.00715.53
7.0.240.0100.00315.45
7.0.230.0000.01215.53
7.0.220.0070.00315.49
7.0.210.0070.00315.36
7.0.200.0020.00616.15
7.0.190.0000.01515.42
7.0.180.0060.00615.46
7.0.170.0060.00615.36
7.0.160.0030.01015.17
7.0.150.0080.00315.41
7.0.140.0020.04318.68
7.0.130.0040.01115.28
7.0.120.0070.00315.38
7.0.110.0230.03517.68
7.0.100.0330.03817.72
7.0.90.0300.03217.63
7.0.80.0240.03217.70
7.0.70.0250.02717.54
7.0.60.0180.02517.74
7.0.50.0270.02917.60
7.0.40.0050.02816.64
7.0.30.0030.02516.50
7.0.20.0030.02416.57
7.0.10.0030.02316.54
7.0.00.0050.03216.54
hhvm-3.22.00.0530.10991.10
hhvm-3.21.30.0630.09690.57
hhvm-3.21.00.0490.12290.38
hhvm-3.20.20.0440.12090.36
hhvm-3.19.20.0570.10389.21
hhvm-3.18.50.0500.11088.00
hhvm-3.18.40.0490.11288.85
hhvm-3.17.30.0640.08887.46
hhvm-3.15.40.0400.11485.02
hhvm-3.13.20.0460.10996.55
hhvm-3.12.140.0500.11995.31
hhvm-3.11.10.0500.10687.84
hhvm-3.10.10.0400.10084.47
5.6.380.0070.00714.34
5.6.370.0060.00614.66
5.6.360.0030.00714.63
5.6.350.0040.01114.46
5.6.340.0030.00614.51
5.6.330.0030.01014.61
5.6.320.0030.00614.56
5.6.310.0060.00614.16
5.6.300.0000.00814.32
5.6.290.0060.00714.31
5.6.280.0020.04117.66
5.6.270.0030.01014.45
5.6.260.0050.03517.60
5.6.250.0080.03517.64
5.6.240.0020.03617.70
5.6.230.0040.04517.52
5.6.220.0040.03817.59
5.6.210.0070.03717.62
5.6.200.0070.03617.54
5.6.190.0050.02417.62
5.6.180.0080.01817.70
5.6.170.0020.02817.57
5.6.160.0070.02517.68
5.6.150.0030.02317.55
5.6.140.0070.02217.45
5.6.130.0080.02517.56
5.6.120.0070.02117.43
5.6.110.0090.04817.57
5.6.100.0050.04817.45
5.6.90.0070.02817.30
5.6.80.0070.02317.32
5.6.70.0020.02917.23
5.6.60.0020.04117.26
5.6.50.0040.03017.05
5.6.40.0080.03517.14
5.6.30.0100.03517.21
5.6.20.0060.02017.04
5.6.10.0100.02017.20
5.6.00.0040.03717.19
5.5.380.0060.02215.23
5.5.370.0050.04215.15
5.5.360.0050.02515.09
5.5.350.0030.02515.12
5.5.340.0080.02915.44
5.5.330.0020.02415.52
5.5.320.0080.01615.33
5.5.310.0020.02615.52
5.5.300.0030.01815.47
5.5.290.0070.02115.34
5.5.280.0060.02315.46
5.5.270.0050.02715.27
5.5.260.0030.02515.41
5.5.250.0050.04215.29
5.5.240.0050.03215.09
5.5.230.0020.02515.15
5.5.220.0050.02515.03
5.5.210.0070.04515.21
5.5.200.0050.04215.20
5.5.190.0020.04315.13
5.5.180.0060.04115.19
5.5.170.0120.00014.27
5.5.160.0030.02714.99
5.5.150.0020.03015.15
5.5.140.0020.02515.06
5.5.130.0070.01815.14
5.5.120.0030.03815.13
5.5.110.0050.03314.99
5.5.100.0080.02014.97
5.5.90.0100.03214.96
5.5.80.0020.04214.90
5.5.70.0070.02115.02
5.5.60.0020.02314.95
5.5.50.0070.01715.01
5.5.40.0070.02514.95
5.5.30.0000.03015.07
5.5.20.0090.01814.95
5.5.10.0050.02014.94
5.5.00.0060.02315.06
5.4.450.0110.03216.13
5.4.440.0070.02016.11
5.4.430.0050.03716.07
5.4.420.0080.03616.15
5.4.410.0020.04116.01
5.4.400.0050.03316.01
5.4.390.0050.05315.95
5.4.380.0050.02215.93
5.4.370.0090.03115.88
5.4.360.0100.04015.88
5.4.350.0040.02215.98
5.4.340.0020.02315.95
5.4.330.0060.00312.79
5.4.320.0010.02415.93
5.4.310.0030.02415.97
5.4.300.0030.02615.90
5.4.290.0070.03315.94
5.4.280.0030.02015.98
5.4.270.0050.02216.02
5.4.260.0100.02016.02
5.4.250.0030.03415.89
5.4.240.0030.02315.89
5.4.230.0070.03815.94
5.4.220.0060.02616.02
5.4.210.0050.03515.94
5.4.200.0040.03615.88
5.4.190.0020.02315.90
5.4.180.0100.01715.98
5.4.170.0010.02415.88
5.4.160.0020.03815.86
5.4.150.0080.02315.88
5.4.140.0050.03214.57
5.4.130.0020.02714.51
5.4.120.0040.04114.63
5.4.110.0050.01714.57
5.4.100.0070.03314.57
5.4.90.0020.02714.57
5.4.80.0000.02214.57
5.4.70.0040.03514.57
5.4.60.0030.04214.44
5.4.50.0110.03314.58
5.4.40.0050.03314.60
5.4.30.0050.02314.52
5.4.20.0020.04014.63
5.4.10.0070.03314.58
5.4.00.0030.03614.33
5.3.290.0000.03413.68
5.3.280.0080.02813.70
5.3.270.0060.02313.73
5.3.260.0080.03813.75
5.3.250.0020.02213.70
5.3.240.0050.02813.67
5.3.230.0070.03013.61
5.3.220.0030.03613.62
5.3.210.0050.04213.57
5.3.200.0020.02013.63
5.3.190.0030.03713.69
5.3.180.0030.03413.68
5.3.170.0060.02013.59
5.3.160.0010.03613.62
5.3.150.0020.03313.68
5.3.140.0030.03813.64
5.3.130.0070.03713.63
5.3.120.0020.02213.62
5.3.110.0030.04013.58
5.3.100.0080.02813.36
5.3.90.0050.03513.31
5.3.80.0000.03513.35
5.3.70.0050.03213.37
5.3.60.0100.03413.40
5.3.50.0060.02013.36
5.3.40.0030.02013.29
5.3.30.0080.03413.39
5.3.20.0050.02313.21
5.3.10.0060.03313.20
5.3.00.0060.04013.13
5.2.170.0060.02812.42
5.2.160.0060.02012.42
5.2.150.0020.02112.42
5.2.140.0000.02712.42
5.2.130.0050.01712.42
5.2.120.0020.03112.42
5.2.110.0080.01212.42
5.2.100.0030.01512.42
5.2.90.0020.03512.42
5.2.80.0050.02212.42
5.2.70.0030.03312.42
5.2.60.0030.03012.42
5.2.50.0030.01512.42
5.2.40.0070.02612.42
5.2.30.0050.02612.42
5.2.20.0030.03412.42
5.2.10.0020.02412.42
5.2.00.0040.03212.42
5.1.60.0040.01412.42
5.1.50.0050.01312.42
5.1.40.0050.01312.42
5.1.30.0000.01712.42
5.1.20.0050.01612.42
5.1.10.0030.01712.42
5.1.00.0000.01712.42
5.0.50.0030.01612.42
5.0.40.0020.01212.42
5.0.30.0020.01512.42
5.0.20.0040.01012.42
5.0.10.0000.01012.42
5.0.00.0050.01212.42
4.4.90.0030.01712.42
4.4.80.0020.01512.42
4.4.70.0000.01312.42
4.4.60.0020.01012.42
4.4.50.0020.02012.42
4.4.40.0020.01512.42
4.4.30.0000.01112.42
4.4.20.0000.01312.42
4.4.10.0010.01012.42
4.4.00.0000.01812.42
4.3.110.0020.01012.42
4.3.100.0030.00812.42
4.3.90.0010.00812.42
4.3.80.0030.01012.42
4.3.70.0020.01512.42
4.3.60.0020.01012.42
4.3.50.0000.01112.42
4.3.40.0030.01312.42
4.3.30.0020.00812.42
4.3.20.0020.01012.42
4.3.10.0020.00712.42
4.3.00.0040.00512.42