3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = '[{2:,0:1,1:Rodapi\u00e9s 1-a, 2-a, bloque 6}, {4:x, y, z,0 :111, 3:some random text},{5:a45:bc,def}]'; $str = preg_replace('/(?<=[{,])\s*(\d+)\s*:(.*?)(?=}|,\s*\d+\s*:)/', '"$1":"$2"', $str); $obj = json_decode($str); print_r($obj);

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.5.10.0090.00919.96
8.5.00.0100.01020.03
8.4.150.0030.00014.05
8.4.140.0110.01017.86
8.4.130.0110.01018.10
8.4.120.0160.00422.48
8.4.110.0130.00719.07
8.4.100.0140.00620.64
8.4.90.0090.01118.69
8.4.80.0120.00819.84
8.4.70.0150.00717.97
8.4.60.0100.01020.74
8.4.50.0130.00619.91
8.4.40.0140.00720.63
8.4.30.0070.01318.98
8.4.20.0130.00720.41
8.4.10.0160.00322.32
8.3.280.0100.00918.58
8.3.270.0150.00916.87
8.3.260.0110.00816.69
8.3.250.0120.00718.85
8.3.240.0110.00816.68
8.3.230.0110.00916.57
8.3.220.0040.00318.85
8.3.210.0090.00716.61
8.3.200.0060.00316.54
8.3.190.0080.00717.10
8.3.180.0110.00916.63
8.3.170.0180.00018.77
8.3.160.0040.00418.55
8.3.150.0130.00620.74
8.3.140.0030.01016.61
8.3.130.0060.00318.63
8.3.120.0060.00319.03
8.3.110.0060.00320.94
8.3.100.0180.00024.06
8.3.90.0040.01126.77
8.3.80.0040.00418.43
8.3.70.0060.01018.43
8.3.60.0070.00718.56
8.3.50.0160.00716.71
8.3.40.0100.01019.91
8.3.30.0120.00318.84
8.3.20.0060.00324.18
8.3.10.0070.00024.66
8.3.00.0080.00026.16
8.2.290.0140.00420.38
8.2.280.0070.00219.14
8.2.270.0090.00919.18
8.2.260.0080.00020.13
8.2.250.0000.00818.53
8.2.240.0100.01017.32
8.2.230.0000.01022.58
8.2.220.0110.00037.54
8.2.210.0070.01126.77
8.2.200.0000.00916.88
8.2.190.0040.01216.88
8.2.180.0120.00616.63
8.2.170.0070.00718.96
8.2.160.0090.00622.96
8.2.150.0040.00425.66
8.2.140.0030.00624.66
8.2.130.0040.00426.16
8.2.120.0030.00521.07
8.2.110.0040.00422.16
8.2.100.0060.00617.84
8.2.90.0080.00018.01
8.2.80.0000.01021.04
8.2.70.0080.00017.75
8.2.60.0080.00017.75
8.2.50.0090.00619.52
8.2.40.0080.00819.52
8.2.30.0100.00619.52
8.2.20.0120.00519.52
8.2.10.0100.00719.52
8.2.00.0120.00519.52
8.1.330.0100.00722.18
8.1.320.0030.00416.44
8.1.310.0060.00316.59
8.1.300.0060.00318.31
8.1.290.0060.00330.84
8.1.280.0110.01125.92
8.1.270.0030.00624.66
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0080.00320.71
8.1.230.0080.00422.75
8.1.220.0050.00317.74
8.1.210.0030.00618.77
8.1.200.0040.00417.38
8.1.190.0060.00317.48
8.1.180.0100.00719.52
8.1.170.0130.00319.52
8.1.160.0090.00719.52
8.1.150.0110.00719.52
8.1.140.0080.00819.52
8.1.130.0140.00319.52
8.1.120.0130.00319.52
8.1.110.0120.00519.52
8.1.100.0140.00319.52
8.1.90.0120.00519.52
8.1.80.0090.00719.52
8.1.70.0130.00419.52
8.1.60.0140.00419.52
8.1.50.0160.00319.52
8.1.40.0180.00219.52
8.1.30.0120.00519.52
8.1.20.0120.00619.52
8.1.10.0110.00719.52
8.1.00.0120.00619.52
8.0.300.0020.00519.91
8.0.290.0060.00316.75
8.0.280.0090.00719.52
8.0.270.0070.00919.52
8.0.260.0140.00219.52
8.0.250.0070.00919.52
8.0.240.0110.00519.52
8.0.230.0100.00619.52
8.0.220.0170.00019.52
8.0.210.0100.00619.52
8.0.200.0150.00219.52
8.0.190.0140.00219.52
8.0.180.0160.00119.52
8.0.170.0110.00719.52
8.0.160.0110.00619.52
8.0.150.0120.00419.52
8.0.140.0160.00119.52
8.0.130.0140.00419.52
8.0.120.0150.00119.52
8.0.110.0120.00419.52
8.0.100.0150.00119.52
8.0.90.0120.00519.52
8.0.80.0110.00519.52
8.0.70.0110.00719.52
8.0.60.0120.00419.52
8.0.50.0090.00719.52
8.0.30.0140.00219.52
8.0.20.0140.00119.52
8.0.10.0120.00419.52

preferences:
102.68 ms | 403 KiB | 5 Q