3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $json = ' {"twitter": [ {"identifier":1,"title":"hello","tags":["a","b","c"],"cats":["a","b","c"]}, {"identifier":2,"title":"semblance","tags":["a","b","c"],"cats":["a","b","c"]} ], "facebook": [ {"identifier":1,"title":"hello","tags":["a","b","c"],"cats":["a","b","c"]}, {"identifier":2,"title":"semblance","tags":["a","b","c"],"cats":["a","b","c"]}], "youtube": [ {"identifier":1,"title":"hello","tags":["a","b","c"],"cats":["a","b","c"]}, {"identifier":2,"title":"semblance","tags":["a","b","c"],"cats":["a","b","c"]}], "flickr": [ {"identifier":1,"title":"hello","tags":["a","b","c"],"cats":["a","b","c"]}, {"identifier":2,"title":"semblance","tags":["a","b","c"],"cats":["a","b","c"]}], "twitter": []}'; $args = json_decode($json); if(empty($args->shit)) { echo "empty"; } if(empty($args->flickr)) { echo "empty"; } foreach($args->flickr as $arg) { print_r($arg); print_r($arg->identifier); }
based on 4lrcX

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.3.0alpha10.0050.00012.61
7.2.60.0100.00316.96
7.2.00.0100.00319.48
7.1.100.0060.00618.04
7.1.70.0000.00817.29
7.1.60.0090.01319.50
7.1.50.0060.01616.81
7.1.00.0100.07022.31
7.0.200.0180.00614.73
7.0.140.0000.05022.21
7.0.60.0030.08319.92
7.0.50.0030.05017.86
7.0.40.0000.09320.29
7.0.30.0230.07720.21
7.0.20.0330.07020.23
7.0.10.0270.04320.30
7.0.00.0100.08020.08
5.6.280.0100.06720.99
5.6.210.0070.07020.76
5.6.200.0070.04018.29
5.6.190.0130.05720.51
5.6.180.0300.08020.42
5.6.170.0370.06020.50
5.6.160.0130.05320.43
5.6.150.0070.08018.13
5.6.140.0170.07718.18
5.6.130.0070.03718.25
5.6.120.0000.07720.98
5.6.110.0130.08021.13
5.6.100.0070.08321.00
5.6.90.0070.04021.03
5.6.80.0100.07320.53
5.6.70.0030.05320.36
5.5.350.0270.07320.46
5.5.340.0030.07017.99
5.5.330.0000.05020.25
5.5.320.0070.04720.26
5.5.310.0330.04720.35
5.5.300.0000.05017.93
5.5.290.0070.07718.02
5.5.280.0130.08020.87
5.5.270.0130.03320.73
5.5.260.0100.07320.64
5.5.250.0130.06320.79
5.5.240.0100.08020.14
5.4.450.0370.07319.65
5.4.440.0970.06319.52
5.4.430.0430.05319.59
5.4.420.0170.05319.46
5.4.410.0170.05319.08
5.4.400.0370.05018.82
5.4.390.0200.06318.84
5.4.380.0500.05018.84
5.4.370.0270.06718.49
5.4.360.0500.06018.79
5.4.350.0300.06718.59
5.4.340.0330.05018.79
5.4.320.0270.06318.62
5.4.310.0430.05718.74
5.4.300.0270.05718.83
5.4.290.0330.05018.61
5.4.280.0230.06318.76
5.4.270.0370.04718.83
5.4.260.0300.05318.73
5.4.250.0230.06318.80
5.4.240.0300.05718.48
5.4.230.0370.04718.56
5.4.220.0400.05018.61
5.4.210.0330.05018.56
5.4.200.0330.04716.79
5.4.190.0330.05018.82
5.4.180.0270.06018.46
5.4.170.0470.05018.75
5.4.160.0370.05718.71
5.4.150.0470.05718.55
5.4.140.0270.05716.30
5.4.130.0400.06716.34
5.4.120.0330.05316.46
5.4.110.0330.04716.21
5.4.100.0370.04716.19
5.4.90.0370.05016.30
5.4.80.0370.05016.44
5.4.70.0270.05716.27
5.4.60.0300.04716.29
5.4.50.0230.05716.28
5.4.40.0370.04716.44
5.4.30.0330.04716.41
5.4.20.0300.05316.18
5.4.10.0230.05316.22
5.4.00.0300.05015.80
5.3.290.0470.05014.90
5.3.280.0400.06314.66
5.3.270.0330.05714.62
5.3.260.0300.05314.67
5.3.250.0370.05014.66
5.3.240.0400.05014.68
5.3.230.0200.05714.62
5.3.220.0330.06014.77
5.3.210.0430.05714.63
5.3.200.0370.05714.82
5.3.190.0330.05714.64
5.3.180.0300.05314.75
5.3.170.0300.05014.58
5.3.160.0230.06314.76
5.3.150.0430.05014.81
5.3.140.0530.05714.70
5.3.130.0370.06014.69
5.3.120.0370.05714.67
5.3.110.0330.06714.71
5.3.100.0300.05014.08
5.3.90.0300.05014.05
5.3.80.0470.04714.14
5.3.70.0330.04714.16
5.3.60.0270.05314.19
5.3.50.0470.06013.96
5.3.40.0400.05314.00
5.3.30.0370.04713.96
5.3.20.0400.04313.87
5.3.10.0400.04013.79
5.3.00.0270.05313.77
5.2.170.0230.04311.29
5.2.160.0300.04011.27
5.2.150.0330.03311.38
5.2.140.0300.04311.28
5.2.130.0330.03011.23
5.2.120.0200.04011.10
5.2.110.0330.03311.24
5.2.100.0170.04711.14
5.2.90.0230.04711.27
5.2.80.0270.04311.09
5.2.70.0200.04711.23
5.2.60.0200.04711.08
5.2.50.0200.04711.08
5.2.40.0200.04011.05
5.2.30.0170.04311.13
5.2.20.0230.04011.08
5.2.10.0130.05010.98
5.2.00.0300.03010.75
5.1.60.0200.0339.96
5.1.50.0170.03710.01
5.1.40.0230.0409.93
5.1.30.0170.04010.37
5.1.20.0270.03710.51
5.1.10.0230.03710.07
5.1.00.0200.03710.09
5.0.50.0130.0278.52
5.0.40.0170.0238.47
5.0.30.0070.0478.20
5.0.20.0100.0308.23
5.0.10.0170.0278.23
5.0.00.0070.0478.27
4.4.90.0130.0235.94
4.4.80.0100.0205.89
4.4.70.0100.0235.91
4.4.60.0170.0235.87
4.4.50.0130.0175.90
4.4.40.0070.0375.89
4.4.30.0070.0275.90
4.4.20.0070.0235.96
4.4.10.0100.0235.96
4.4.00.0070.0405.90
4.3.110.0100.0235.86
4.3.100.0030.0275.85
4.3.90.0100.0205.80
4.3.80.0100.0375.79
4.3.70.0100.0235.78
4.3.60.0070.0235.77
4.3.50.0070.0235.82
4.3.40.0100.0335.74
4.3.30.0030.0234.56
4.3.20.0070.0204.55
4.3.10.0030.0234.49
4.3.00.0000.0307.05