3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = '{ "smartling": { "en_us" : { "files": [ { "fileUri": "/dictionaries/sample_en.json", "stringCount": 100, "wordCount": 12540, "approvedStringCount": 100, "completedStringCount": 40, "lastUploaded": "2014-06-12", "fileType": "json", }, ] }, "ja-jp": { "files":[ { "fileUri": "/dictionaries/sample_jp.json", "stringCount": 100, "wordCount": 12540, "approvedStringCount": 100, "completedStringCount": 40, "lastUploaded": "2014-06-12", "fileType": "json", } ] } } }'; //$dict = json_decode($str); //$count = count($dict['smartling']); var_dump($str); //echo $count;

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).

VersionSystem time (s)User time (s)Memory (MiB)
8.3.70.0070.00716.38
8.3.60.0100.00716.50
8.3.50.0110.00521.93
8.3.40.0170.00318.57
8.3.30.0100.00318.95
8.3.20.0000.00720.31
8.3.10.0090.00023.53
8.3.00.0060.00320.77
8.2.180.0150.00016.32
8.2.170.0070.00722.96
8.2.160.0090.00620.53
8.2.150.0000.00824.18
8.2.140.0030.00524.66
8.2.130.0040.00426.16
8.2.120.0080.00020.98
8.2.110.0040.00422.13
8.2.100.0040.00719.39
8.2.90.0060.00319.09
8.2.80.0040.00417.97
8.2.70.0030.00617.38
8.2.60.0060.00317.91
8.2.50.0090.00018.07
8.2.40.0080.00019.88
8.2.30.0070.00018.24
8.2.20.0000.00817.68
8.2.10.0000.00818.04
8.2.00.0040.00417.47
8.1.280.0070.01025.92
8.1.270.0000.00823.92
8.1.260.0080.00026.35
8.1.250.0000.00828.09
8.1.240.0030.00618.88
8.1.230.0080.00319.00
8.1.220.0050.00317.74
8.1.210.0040.00418.77
8.1.200.0030.00617.23
8.1.190.0050.00317.22
8.1.180.0050.00318.10
8.1.170.0000.00818.46
8.1.160.0070.00021.85
8.1.150.0040.00418.52
8.1.140.0000.00817.42
8.1.130.0000.00717.77
8.1.120.0030.00417.32
8.1.110.0040.00417.28
8.1.100.0040.00417.28
8.1.90.0020.00517.38
8.1.80.0050.00317.39
8.1.70.0070.00017.37
8.1.60.0040.00417.47
8.1.50.0020.00517.40
8.1.40.0040.00417.41
8.1.30.0030.00917.56
8.1.20.0000.00717.64
8.1.10.0000.00717.47
8.1.00.0070.00017.38
8.0.300.0070.00018.77
8.0.290.0030.00517.05
8.0.280.0000.00818.25
8.0.270.0070.00017.06
8.0.260.0060.00017.23
8.0.250.0030.00316.93
8.0.240.0080.00016.88
8.0.230.0040.00416.78
8.0.220.0000.00716.79
8.0.210.0030.00316.84
8.0.200.0030.00316.86
8.0.190.0030.00616.80
8.0.180.0040.00416.76
8.0.170.0050.00216.75
8.0.160.0000.00716.81
8.0.150.0000.00816.78
8.0.140.0070.00016.77
8.0.130.0030.00313.29
8.0.120.0030.00616.83
8.0.110.0050.00316.70
8.0.100.0060.00316.79
8.0.90.0070.00016.93
8.0.80.0120.00616.80
8.0.70.0070.00016.81
8.0.60.0040.00416.84
8.0.50.0040.00416.66
8.0.30.0090.00916.82
8.0.20.0100.00917.40
8.0.10.0040.00416.96
8.0.00.0090.00816.56
7.4.330.0000.00715.02
7.4.320.0070.00016.42
7.4.300.0000.00616.52
7.4.290.0070.00016.45
7.4.280.0000.00716.42
7.4.270.0030.00416.35
7.4.260.0000.00716.51
7.4.250.0040.00416.54
7.4.240.0020.00516.44
7.4.230.0030.00316.31
7.4.220.0080.00916.48
7.4.210.0100.00616.46
7.4.200.0030.00316.53
7.4.190.0040.00416.30
7.4.160.0090.00916.52
7.4.150.0170.00017.40
7.4.140.0080.01117.86
7.4.130.0110.00916.31
7.4.120.0090.00916.50
7.4.110.0100.00716.51
7.4.100.0000.01816.30
7.4.90.0060.01016.37
7.4.80.0030.01419.39
7.4.70.0100.00716.36
7.4.60.0060.01016.32
7.4.50.0000.00916.26
7.4.40.0110.00616.37
7.4.30.0100.00616.45
7.4.00.0090.00614.59
7.3.330.0030.00313.05
7.3.320.0030.00312.97
7.3.310.0000.00716.06
7.3.300.0030.00316.03
7.3.290.0040.00916.09
7.3.280.0110.00816.13
7.3.270.0130.00317.40
7.3.260.0030.01716.20
7.3.250.0100.00816.27
7.3.240.0150.00316.11
7.3.230.0130.00616.39
7.3.210.0100.00716.16
7.3.200.0080.01119.39
7.3.190.0130.00416.15
7.3.180.0090.00616.34
7.3.170.0120.00916.27
7.3.160.0100.00616.36
7.3.120.0070.01014.88
7.3.10.0040.00716.34
7.3.00.0080.00816.33
7.2.330.0070.01316.18
7.2.320.0170.00616.45
7.2.310.0120.00916.34
7.2.300.0070.01516.55
7.2.290.0080.00816.53
7.2.130.0030.01616.52
7.2.120.0060.00916.32
7.2.110.0090.00916.44
7.2.100.0110.00816.45
7.2.90.0160.00616.57
7.2.80.0120.00716.63
7.2.70.0110.01216.72
7.2.60.0110.00816.56
7.2.50.0180.00616.60
7.2.40.0090.01216.54
7.2.30.0070.00916.71
7.2.20.0050.00816.53
7.2.10.0060.01016.51
7.2.00.0120.00817.22
7.1.250.0080.00315.73
7.1.230.0110.01115.52
7.1.220.0180.00715.64
7.1.210.0200.00815.77
7.1.200.0120.00715.71
7.1.190.0180.00915.78
7.1.180.0170.00915.71
7.1.170.0190.00715.64
7.1.160.0230.00015.38
7.1.150.0210.00315.64
7.1.140.0030.01015.84
7.1.130.0070.00315.39
7.1.120.0070.00715.38
7.1.110.0090.00615.59
7.1.100.0090.00716.78
7.1.90.0090.00315.45
7.1.80.0040.00715.48
7.1.70.0050.00516.38
7.1.60.0100.00717.71
7.1.50.0030.01116.39
7.1.40.1070.01015.75
7.1.30.0100.00715.85
7.1.20.0150.00415.85
7.1.10.0000.01415.43
7.1.00.0080.03819.04
7.0.310.0220.00615.15
7.0.300.0120.01215.41
7.0.290.0190.00715.22
7.0.280.0080.00815.04
7.0.270.0100.00315.24
7.0.260.0040.00415.21
7.0.250.0070.00715.57
7.0.240.0090.00615.13
7.0.230.0080.00415.09
7.0.220.0000.01015.20
7.0.210.0040.00814.99
7.0.200.0020.00916.01
7.0.190.0030.00715.20
7.0.180.0040.00815.13
7.0.170.0000.01315.19
7.0.160.0070.00715.12
7.0.150.0070.00715.26
7.0.140.0070.03918.76
7.0.130.0000.01414.94
7.0.120.0110.00415.07
7.0.110.0070.00715.14
7.0.100.0030.01015.05
7.0.90.0070.00415.14
7.0.80.0120.00315.24
7.0.70.0080.00314.84
7.0.60.0090.04117.52
7.0.50.0080.02216.39
7.0.40.0050.03216.43
7.0.30.0150.03016.53
7.0.20.0210.02316.71
7.0.10.0020.03516.70
7.0.00.0060.02516.63
5.6.380.0060.01713.97
5.6.370.0100.01514.07
5.6.360.0110.01313.75
5.6.350.0080.01514.36
5.6.340.0140.00014.15
5.6.330.0030.01014.14
5.6.320.0120.00314.29
5.6.310.0130.00014.30
5.6.300.0000.01413.97
5.6.290.0080.00413.72
5.6.280.0030.04117.45
5.6.270.0030.01014.08
5.6.260.0060.00613.77
5.6.250.0040.01114.09
5.6.240.0070.00714.31
5.6.230.0090.00614.34
5.6.220.0090.00314.21
5.6.210.0100.04317.30
5.6.200.0070.04715.96
5.6.190.0060.03317.04
5.6.180.0050.04517.25
5.6.170.0120.04517.21
5.6.160.0100.04117.12
5.6.150.0020.03416.15
5.6.140.0100.04316.16
5.6.130.0090.04516.01
5.6.120.0040.02717.62
5.6.110.0090.04117.41
5.6.100.0070.03717.52
5.6.90.0070.04217.68
5.6.80.0030.04217.27
5.6.70.0060.00913.84
5.6.60.0030.01214.30
5.6.50.0070.00714.20
5.6.40.0090.00014.02
5.6.30.0060.00613.97
5.6.20.0080.00413.84
5.6.10.0030.00914.03
5.6.00.0000.01414.02
5.5.380.0040.00810.85
5.5.370.0090.00310.69
5.5.360.0030.00310.70
5.5.350.0060.04015.48
5.5.340.0030.02514.28
5.5.330.0070.04515.31
5.5.320.0040.02215.35
5.5.310.0240.03915.43
5.5.300.0000.02514.46
5.5.290.0060.02514.45
5.5.280.0110.03315.92
5.5.270.0070.03515.94
5.5.260.0120.03715.90
5.5.250.0110.03715.70
5.5.240.0030.04215.40
5.5.230.0000.01210.53
5.5.220.0030.00610.73
5.5.210.0030.00410.83
5.5.200.0070.00310.61
5.5.190.0000.00810.95
5.5.180.0100.00010.89
5.5.170.0030.01014.20
5.5.160.0070.00410.87
5.5.150.0000.01010.94
5.5.140.0040.00810.73
5.5.130.0030.00610.94
5.5.120.0090.00310.95
5.5.110.0070.00410.96
5.5.100.0050.00310.47
5.5.90.0070.00310.96
5.5.80.0040.00810.81
5.5.70.0060.00610.59
5.5.60.0070.00710.71
5.5.50.0120.00010.46
5.5.40.0060.00610.88
5.5.30.0000.01010.83
5.5.20.0120.00010.75
5.5.10.0030.00610.74
5.5.00.0000.01110.84
5.4.450.0230.02615.09
5.4.440.0230.02515.02
5.4.430.0170.03014.91
5.4.420.0230.02815.30
5.4.410.0240.02115.07
5.4.400.0180.02914.93
5.4.390.0280.02814.87
5.4.380.0230.03714.87
5.4.370.0220.02214.93
5.4.360.0250.01814.88
5.4.350.0270.03814.94
5.4.340.0330.03414.91
5.4.330.0040.00410.68
5.4.320.0410.03115.06
5.4.310.0270.02714.81
5.4.300.0310.01714.99
5.4.290.0330.03115.02
5.4.280.0280.03514.78
5.4.270.0290.03214.79
5.4.260.0200.02714.91
5.4.250.0280.02215.06
5.4.240.0330.02014.79
5.4.230.0260.02014.85
5.4.220.0300.03014.76
5.4.210.0280.03714.82
5.4.200.0270.02215.01
5.4.190.0280.03414.85
5.4.180.0250.02115.01
5.4.170.0280.02014.69
5.4.160.0310.03015.04
5.4.150.0220.02414.85
5.4.140.0200.02113.62
5.4.130.0220.02413.50
5.4.120.0180.02013.37
5.4.110.0240.02013.35
5.4.100.0270.02013.51
5.4.90.0230.02213.56
5.4.80.0260.03413.40
5.4.70.0190.02313.42
5.4.60.0220.01913.57
5.4.50.0270.03313.58
5.4.40.0270.02713.32
5.4.30.0270.02913.42
5.4.20.0280.02913.31
5.4.10.0200.02313.52
5.4.00.0270.02713.28
5.3.290.0320.03512.56
5.3.280.0250.02112.37
5.3.270.0300.02212.40
5.3.260.0280.02012.51
5.3.250.0230.02112.39
5.3.240.0230.02012.27
5.3.230.0180.02712.39
5.3.220.0250.02012.29
5.3.210.0270.03212.38
5.3.200.0200.02112.29
5.3.190.0170.02712.32
5.3.180.0190.02012.42
5.3.170.0180.02312.46
5.3.160.0230.03712.43
5.3.150.0250.01712.41
5.3.140.0210.02312.41
5.3.130.0240.02912.39
5.3.120.0240.03412.46
5.3.110.0200.02712.29
5.3.100.0270.03611.96
5.3.90.0220.01812.18
5.3.80.0260.03012.14
5.3.70.0330.03312.01
5.3.60.0320.02912.07
5.3.50.0270.02412.08
5.3.40.0340.03512.12
5.3.30.0330.03312.05
5.3.20.0250.02511.91
5.3.10.0360.02311.74
5.3.00.0320.03311.79
5.2.170.0250.03010.23
5.2.160.0270.02510.22
5.2.150.0240.01710.30
5.2.140.0270.03010.24
5.2.130.0250.02010.18
5.2.120.0320.02310.25
5.2.110.0240.01510.18
5.2.100.0270.02710.21
5.2.90.0200.02110.24
5.2.80.0290.01510.11
5.2.70.0230.02010.14
5.2.60.0200.02310.06
5.2.50.0230.02310.13
5.2.40.0180.01810.20
5.2.30.0180.02410.00
5.2.20.0210.01310.04
5.2.10.0120.01810.06
5.2.00.0130.0189.87
5.1.60.0100.0179.65
5.1.50.0220.0209.65
5.1.40.0170.0209.65
5.1.30.0140.0159.65
5.1.20.0130.0159.65
5.1.10.0150.0139.65
5.1.00.0160.0139.65
5.0.50.0120.0089.65
5.0.40.0100.0229.65
5.0.30.0120.0179.65
5.0.20.0070.0129.65
5.0.10.0050.0159.65
5.0.00.0080.0189.65
4.4.90.0120.0179.65
4.4.80.0100.0179.65
4.4.70.0060.0119.65
4.4.60.0080.0089.65
4.4.50.0050.0129.65
4.4.40.0100.0209.65
4.4.30.0080.0209.65
4.4.20.0070.0129.65
4.4.10.0100.0189.65
4.4.00.0100.0139.65
4.3.110.0070.0179.65
4.3.100.0070.0109.65
4.3.90.0080.0089.65
4.3.80.0050.0159.65
4.3.70.0050.0139.65
4.3.60.0100.0189.65
4.3.50.0070.0109.65
4.3.40.0080.0139.65
4.3.30.0030.0109.65
4.3.20.0050.0139.65
4.3.10.0060.0089.65
4.3.00.0030.0129.65

preferences:
48.61 ms | 401 KiB | 5 Q