3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text ='{"success":true,"result":[{"product_id":"","faq_no":"FAQ1","faqcategories":"General","faqstatus":"Published","question":"\u062a\u0633\u062a \u062f\u0627\u0631\u061f","faq_answer":"\u0646\u062f\u0627\u0631\u062f","createdtime":"2017-11-20 08:35:47","modifiedtime":"2017-11-20 08:35:47","modifiedby":"19x1","source":"CRM","starred":"0","tags":"","id":"3x12"}]}'; function cleanjson($text){ $newjson = explode("{",$text); $newjsonrightclean="{".$newjson[1]."{".$newjson[2]; $newjson2 = explode("}}",$newjsonrightclean); $out = $newjson2[0]."}}"; return $out; } echo cleanjson($text) ;

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.0140.00416.58
8.3.60.0000.01516.50
8.3.50.0050.00917.15
8.3.40.0040.01818.65
8.3.30.0090.00618.70
8.3.20.0040.00420.16
8.3.10.0070.00023.48
8.3.00.0040.00423.48
8.2.190.0120.00916.75
8.2.180.0170.00318.29
8.2.170.0070.00718.64
8.2.160.0100.00322.96
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0000.00720.35
8.2.120.0040.00426.35
8.2.110.0110.00022.08
8.2.100.0120.00017.74
8.2.90.0040.00419.27
8.2.80.0070.00318.04
8.2.70.0000.00817.50
8.2.60.0050.00318.04
8.2.50.0000.00818.22
8.2.40.0000.00820.53
8.2.30.0000.00719.43
8.2.20.0000.00718.05
8.2.10.0040.00418.10
8.2.00.0070.00018.04
8.1.280.0090.00625.92
8.1.270.0040.00422.08
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0090.00023.92
8.1.230.0110.00417.70
8.1.220.0000.00917.79
8.1.210.0090.00018.77
8.1.200.0040.00417.35
8.1.190.0060.00317.22
8.1.180.0070.00018.10
8.1.170.0000.00718.62
8.1.160.0000.00718.80
8.1.150.0030.00320.09
8.1.140.0040.00419.06
8.1.130.0050.00318.92
8.1.120.0050.00517.34
8.1.110.0000.00717.54
8.1.100.0030.00317.42
8.1.90.0070.00017.39
8.1.80.0040.00417.53
8.1.70.0030.00317.51
8.1.60.0030.00517.59
8.1.50.0060.00317.42
8.1.40.0030.00517.43
8.1.30.0040.00417.66
8.1.20.0040.00417.56
8.1.10.0000.00717.58
8.1.00.0000.00817.38
8.0.300.0050.00218.77
8.0.290.0000.00816.88
8.0.280.0040.00418.37
8.0.270.0070.00017.17
8.0.260.0060.00018.80
8.0.250.0000.00617.02
8.0.240.0000.00716.92
8.0.230.0030.00316.97
8.0.220.0030.00316.86
8.0.210.0030.00316.92
8.0.200.0040.00416.89
8.0.190.0000.00716.85
8.0.180.0040.00416.92
8.0.170.0000.00816.76
8.0.160.0000.00716.93
8.0.150.0040.00416.79
8.0.140.0000.00716.73
8.0.130.0030.00313.26
8.0.120.0040.00416.76
8.0.110.0040.00416.93
8.0.100.0000.00716.77
8.0.90.0080.00016.77
8.0.80.0030.01116.88
8.0.70.0000.00716.79
8.0.60.0040.00416.86
8.0.50.0040.00416.78
8.0.30.0090.01317.03
8.0.20.0160.00617.40
8.0.10.0000.00816.78
8.0.00.0090.00916.82
7.4.330.0030.00315.55
7.4.320.0000.00616.60
7.4.300.0060.00016.69
7.4.290.0000.00716.61
7.4.280.0000.00716.61
7.4.270.0030.00316.55
7.4.260.0050.00316.48
7.4.250.0070.00016.47
7.4.240.0020.00516.53
7.4.230.0040.00416.71
7.4.220.0060.01216.46
7.4.210.0140.00416.54
7.4.200.0070.00016.52
7.4.160.0090.00816.61
7.4.150.0110.00717.40
7.4.140.0100.00817.86
7.4.130.0060.01216.46
7.4.120.0070.01116.46
7.4.110.0100.00616.39
7.4.100.0170.00416.50
7.4.90.0100.01316.50
7.4.80.0030.01319.39
7.4.70.0080.00816.41
7.4.60.0060.01016.40
7.4.50.0070.00716.73
7.4.40.0110.00616.50
7.4.30.0080.00816.59
7.4.00.0100.00315.03
7.3.330.0030.00313.27
7.3.320.0030.00313.25
7.3.310.0070.00016.27
7.3.300.0060.00016.18
7.3.290.0100.00616.27
7.3.280.0070.00716.21
7.3.270.0140.00317.40
7.3.260.0120.00716.48
7.3.250.0140.00616.29
7.3.240.0100.00816.41
7.3.230.0080.00816.48
7.3.210.0070.01016.38
7.3.200.0140.00416.50
7.3.190.0110.00416.40
7.3.180.0050.01116.57
7.3.170.0000.01616.46
7.3.160.0040.01116.41
7.2.330.0120.00616.69
7.2.320.0140.00416.41
7.2.310.0180.00316.62
7.2.300.0110.01116.50
7.2.290.0080.00816.71
7.2.60.0170.00417.00
7.1.200.0090.00415.62
7.1.110.0470.00916.21
7.1.100.0500.01416.32
7.1.90.0230.01315.98
7.1.80.0430.00516.34
7.1.70.0400.01515.25
7.1.60.0380.01633.37
7.1.50.0530.01433.00
7.1.40.0580.01032.57
7.1.30.0640.00932.61
7.1.20.0580.00732.66
7.1.10.0400.01314.76
7.1.00.0390.01314.89
7.0.250.0460.00915.63
7.0.240.0430.01715.85
7.0.230.0420.01115.68
7.0.220.0510.01616.00
7.0.210.0540.01514.65
7.0.200.0440.00914.59
7.0.190.0490.00914.70
7.0.180.0600.01014.41
7.0.170.0510.00714.29
7.0.160.0390.01214.43
7.0.150.0330.01314.35
7.0.140.0350.00814.46
7.0.130.0450.00614.71
7.0.120.0400.01014.57
7.0.110.0500.00614.34
7.0.100.0450.01014.34
7.0.90.0300.01014.63
7.0.80.0320.00614.32
7.0.70.0380.01314.45
7.0.60.0570.00614.34
7.0.50.0410.00814.56
7.0.40.0940.01314.40
7.0.30.0280.00714.57
7.0.20.0270.00614.33
7.0.10.0340.00714.57
7.0.00.0520.01014.79

preferences:
19.24 ms | 401 KiB | 5 Q