3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $str= <<<STR %257B%2522content%2522%253A%257B%2522song_id%2522%253A73979307%252C%2522pid%2522%253A%25220%2522%252C%2522title%2522%253A%2522%255Cu4e03%255Cu8272%255Cu6865%2522%252C%2522artist_id%2522%253A73356857%252C%2522artist%2522%253A%2522FightingMan%2522%252C%2522all_artist_id%2522%253A%2522127857%2522%252C%2522all_artist%2522%253A%2522FightingMan%2522%252C%2522author%2522%253A%2522FightingMan%2522%252C%2522compose%2522%253A%2522%2522%252C%2522songwriting%2522%253A%2522%2522%252C%2522mixed%2522%253A%2522%2522%252C%2522arrangements%2522%253A%2522%2522%252C%2522language%2522%253A%2522%2522%252C%2522publishtime%2522%253A%2522%2522%252C%2522file_duration%2522%253A%252268%2522%252C%2522hot%2522%253A%25220%2522%252C%2522hot_listen%2522%253A%25220%2522%252C%2522ting_hot%2522%253A%25220%2522%252C%2522download_count%2522%253A%25220%2522%252C%2522likes%2522%253A%25220%2522%252C%2522style%2522%253A%2522%2522%252C%2522is_down%2522%253A%25221%2522%252C%2522is_zip%2522%253A%25220%2522%252C%2522is_charge%2522%253A%25220%2522%252C%2522price%2522%253A%25220%2522%252C%2522xrank%2522%253A%25220%2522%252C%2522del_status%2522%253A%25220%2522%252C%2522verify_status%2522%253A%25221%2522%252C%2522max_rate%2522%253A%2522320%2522%252C%2522info%2522%253A%2522%2522%252C%2522relate_song_ids%2522%253A%2522%2522%252C%2522ontop%2522%253A%25220%2522%252C%2522allow_cover%2522%253A%25221%2522%252C%2522type%2522%253A%25220%2522%252C%2522is_cover%2522%253A%25220%2522%252C%2522ext%2522%253A%2522%2522%252C%2522style_ids%2522%253A%2522%2522%252C%2522tag_ids%2522%253A%2522%2522%257D%252C%2522audio%2522%253A%257B%2522param%2522%253A%2522http%253A%255C%252F%255C%252Fbcs-sandbox.baidu.com%255C%252Fqukuauto%255C%252F0525ee3363f91cfa6ed55dc1c81ad97d.mp3%2522%257D%252C%2522type%2522%253A%2522song%2522%257D STR; $str1 = <<<STRR %7B%22content%22%3A%7B%22song_id%22%3A73979307%2C%22pid%22%3A%220%22%2C%22title%22%3A%22%5Cu4e03%5Cu8272%5Cu6865%22%2C%22artist_id%22%3A73356857%2C%22artist%22%3A%22FightingMan%22%2C%22all_artist_id%22%3A%22127857%22%2C%22all_artist%22%3A%22FightingMan%22%2C%22author%22%3A%22FightingMan%22%2C%22compose%22%3A%22%22%2C%22songwriting%22%3A%22%22%2C%22mixed%22%3A%22%22%2C%22arrangements%22%3A%22%22%2C%22language%22%3A%22%22%2C%22publishtime%22%3A%22%22%2C%22file_duration%22%3A%2268%22%2C%22hot%22%3A%220%22%2C%22hot_listen%22%3A%220%22%2C%22ting_hot%22%3A%220%22%2C%22download_count%22%3A%220%22%2C%22likes%22%3A%220%22%2C%22style%22%3A%22%22%2C%22is_down%22%3A%221%22%2C%22is_zip%22%3A%220%22%2C%22is_charge%22%3A%220%22%2C%22price%22%3A%220%22%2C%22xrank%22%3A%220%22%2C%22del_status%22%3A%220%22%2C%22verify_status%22%3A%221%22%2C%22max_rate%22%3A%22320%22%2C%22info%22%3A%22%22%2C%22relate_song_ids%22%3A%22%22%2C%22ontop%22%3A%220%22%2C%22allow_cover%22%3A%221%22%2C%22type%22%3A%220%22%2C%22is_cover%22%3A%220%22%2C%22ext%22%3A%22%22%2C%22style_ids%22%3A%22%22%2C%22tag_ids%22%3A%22%22%7D%2C%22audio%22%3A%7B%22param%22%3A%22http%3A%5C%2F%5C%2Fbcs-sandbox.baidu.com%5C%2Fqukuauto%5C%2F0525ee3363f91cfa6ed55dc1c81ad97d.mp3%22%7D%2C%22type%22%3A%22song%22%7D STRR; var_dump(urldecode($str1));
based on CCUGt

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.00.0060.00619.12
7.1.100.0030.00618.01
7.1.70.0030.00617.05
7.1.60.0030.01619.46
7.1.50.0040.01916.94
7.1.00.0000.07722.36
7.0.200.0040.00416.41
7.0.140.0030.06022.07
7.0.60.0030.06019.87
7.0.50.0070.05317.91
7.0.40.0130.08320.40
7.0.30.0330.07720.30
7.0.20.0270.07720.13
7.0.10.0100.03720.30
7.0.00.0130.05720.13
5.6.280.0070.07020.91
5.6.210.0070.07020.53
5.6.200.0170.07018.22
5.6.190.0030.04320.69
5.6.180.3500.06020.48
5.6.170.0230.08020.49
5.6.160.0070.08020.46
5.6.150.0200.07018.12
5.6.140.0100.03718.11
5.6.130.0030.08018.12
5.6.120.0030.06020.97
5.6.110.0100.03721.14
5.6.100.0070.04020.99
5.6.90.0070.03721.03
5.6.80.0030.03720.50
5.6.70.4400.03020.37
5.5.350.0430.06720.38
5.5.340.0070.05317.98
5.5.330.0030.06720.20
5.5.320.0270.04720.29
5.5.310.0330.07020.50
5.5.300.0030.04318.02
5.5.290.0030.08718.02
5.5.280.0100.03720.78
5.5.270.0000.07020.94
5.5.260.0000.06320.88
5.5.250.0030.08320.61
5.5.240.0270.07020.14
5.4.450.0670.06319.11
5.4.440.0170.05319.10
5.4.430.0100.05319.49
5.4.420.0130.05019.47
5.4.410.0200.04319.37
5.4.400.0070.05719.06
5.4.390.0230.05018.50
5.4.380.0300.04718.53
5.4.370.0270.05018.59
5.4.360.0200.07018.73
5.4.350.0130.06318.60
5.4.340.0200.05318.59
5.4.320.0230.04718.71
5.4.310.0270.07018.68
5.4.300.0230.05018.69
5.4.290.0230.05018.57
5.4.280.0130.06018.63
5.4.270.0100.06018.45
5.4.260.0130.06318.61
5.4.250.0300.05318.59
5.4.240.0170.06318.49
5.4.230.0130.06018.57
5.4.220.0100.06318.68
5.4.210.0270.04718.66
5.4.200.0170.05316.47
5.4.190.0270.04718.64
5.4.180.0230.04718.44
5.4.170.0230.05018.38
5.4.160.0230.05018.57
5.4.150.0200.05718.65
5.4.140.0200.05016.36
5.4.130.0300.04016.09
5.4.120.0170.05716.14
5.4.110.0130.05716.17
5.4.100.0170.05316.30
5.4.90.0200.05316.13
5.4.80.0230.05316.21
5.4.70.0270.04316.28
5.4.60.0200.04716.20
5.4.50.0130.05316.14
5.4.40.0330.03716.11
5.4.30.0130.05316.03
5.4.20.0170.05016.13
5.4.10.0170.05016.22
5.4.00.0100.06715.77
5.3.290.0270.04714.75
5.3.280.0130.05714.69
5.3.270.0200.05014.52
5.3.260.0300.04314.53
5.3.250.0170.05314.48
5.3.240.0230.05714.70
5.3.230.0200.04714.59
5.3.220.0070.06014.55
5.3.210.0200.05014.57
5.3.200.0100.05714.47
5.3.190.0200.05014.55
5.3.180.0200.04714.64
5.3.170.0130.05714.49
5.3.160.0130.05314.64
5.3.150.0270.04314.61
5.3.140.0170.05714.63
5.3.130.0230.04714.59
5.3.120.0130.06014.62
5.3.110.0170.06314.54
5.3.100.0270.04013.96
5.3.90.0170.05014.11
5.3.80.0270.04014.01
5.3.70.0130.05713.96
5.3.60.0200.05013.99
5.3.50.0230.04313.86
5.3.40.0230.04713.91
5.3.30.0170.04713.89
5.3.20.0100.05313.78
5.3.10.0170.04313.56
5.3.00.0100.05313.73
5.2.170.0070.04711.08
5.2.160.0170.04011.30
5.2.150.0170.03711.29
5.2.140.0130.04011.21
5.2.130.0130.04011.24
5.2.120.0130.05311.11
5.2.110.0030.05011.17
5.2.100.0070.04711.09
5.2.90.0200.03311.14
5.2.80.0130.04711.07
5.2.70.0130.05011.16
5.2.60.0030.05311.02
5.2.50.0170.03711.03
5.2.40.0130.04010.95
5.2.30.0130.03711.11
5.2.20.0100.04711.08
5.2.10.0170.03311.15
5.2.00.0130.04310.86
5.1.60.0130.03010.19
5.1.50.0200.02310.15
5.1.40.0170.03010.14
5.1.30.0100.03710.44
5.1.20.0130.03710.55
5.1.10.0170.03710.20
5.1.00.0130.03310.22
5.0.50.0100.0278.74
5.0.40.0030.0408.66
5.0.30.0100.0438.48
5.0.20.0030.0308.33
5.0.10.0070.0308.50
5.0.00.0100.0438.50
4.4.90.0070.0206.17
4.4.80.0070.0206.13
4.4.70.0030.0276.06
4.4.60.0070.0306.06
4.4.50.0030.0276.15
4.4.40.0000.0406.15
4.4.30.0030.0306.11
4.4.20.0130.0206.25
4.4.10.0030.0236.22
4.4.00.0070.0336.17
4.3.110.0030.0236.02
4.3.100.0070.0206.06
4.3.90.0070.0236.09
4.3.80.0030.0406.05
4.3.70.0070.0206.05
4.3.60.0130.0136.06
4.3.50.0070.0206.03
4.3.40.0030.0376.00
4.3.30.0100.0234.84
4.3.20.0000.0304.79
4.3.10.0000.0234.52
4.3.00.0130.0207.18