3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = '("one","two","three,subthree","four")'; $string = str_replace(['(', ')'], ['[', ']'], $string); $array = json_decode($string, true); print_r($array);

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.01216.43
8.5.00.0100.01019.84
8.4.150.0020.00114.05
8.4.140.0100.01217.52
8.4.130.0140.00617.83
8.4.120.0120.00820.55
8.4.110.0050.00518.71
8.4.100.0040.00517.65
8.4.90.0100.01018.46
8.4.80.0090.00817.76
8.4.70.0150.00617.39
8.4.60.0140.00519.00
8.4.50.0110.00417.35
8.4.40.0170.00317.50
8.4.30.0120.00918.54
8.4.20.0070.01418.46
8.4.10.0060.00317.66
8.3.280.0130.01018.20
8.3.270.0190.00416.71
8.3.260.0110.00516.63
8.3.250.0100.00818.95
8.3.240.0070.00216.40
8.3.230.0140.00616.57
8.3.220.0040.00417.13
8.3.210.0080.00616.54
8.3.200.0030.00516.57
8.3.190.0090.00517.00
8.3.180.0070.01216.54
8.3.170.0080.00819.03
8.3.160.0110.00718.37
8.3.150.0090.00620.86
8.3.140.0040.00416.68
8.3.130.0000.01017.11
8.3.120.0130.00618.77
8.3.110.0080.00016.54
8.3.100.0060.00324.06
8.3.90.0100.00026.77
8.3.80.0090.00017.97
8.3.70.0090.00616.50
8.3.60.0060.01518.31
8.3.50.0090.00417.19
8.3.40.0180.00418.71
8.3.30.0130.00918.54
8.3.20.0040.00421.60
8.3.10.0000.00821.76
8.3.00.0070.00022.46
8.2.290.0110.00620.25
8.2.280.0110.00818.14
8.2.270.0070.01117.13
8.2.260.0120.00318.12
8.2.250.0040.00416.80
8.2.240.0000.00918.79
8.2.230.0030.00620.94
8.2.220.0030.00637.54
8.2.210.0150.00426.77
8.2.200.0090.00016.63
8.2.190.0090.00916.58
8.2.180.0110.00718.16
8.2.170.0150.00022.96
8.2.160.0140.00019.34
8.2.150.0040.00424.18
8.2.140.0070.00024.66
8.2.130.0080.00026.16
8.2.120.0050.00220.94
8.2.110.0000.01022.11
8.2.100.0080.00417.78
8.2.90.0080.00417.64
8.2.80.0000.00817.97
8.2.70.0030.00517.92
8.2.60.0050.00317.84
8.2.50.0030.00618.10
8.2.40.0070.00019.21
8.2.30.0040.00419.23
8.2.20.0040.00417.99
8.2.10.0040.00419.23
8.2.00.0000.00819.21
8.1.330.0050.00322.03
8.1.320.0130.00615.92
8.1.310.0040.00416.57
8.1.300.0060.00918.50
8.1.290.0050.00518.88
8.1.280.0070.00725.92
8.1.270.0040.00422.21
8.1.260.0040.00426.35
8.1.250.0060.00328.09
8.1.240.0090.00022.45
8.1.230.0080.00420.84
8.1.220.0000.00917.74
8.1.210.0050.00318.82
8.1.200.0030.00617.22
8.1.190.0040.00416.88
8.1.180.0000.00918.10
8.1.170.0000.00818.50
8.1.160.0040.00418.86
8.1.150.0040.00418.73
8.1.140.0000.00720.87
8.1.130.0070.00020.05
8.1.120.0040.00417.36
8.1.110.0050.00217.28
8.1.100.0070.00317.27
8.1.90.0030.00617.36
8.1.80.0040.00417.39
8.1.70.0000.00717.34
8.1.60.0040.00417.52
8.1.50.0030.00617.47
8.1.40.0040.00417.34
8.1.30.0000.00817.54
8.1.20.0040.00417.52
8.1.10.0000.00717.45
8.1.00.0030.00517.44
8.0.300.0040.00419.96
8.0.290.0080.00016.58
8.0.280.0040.00418.37
8.0.270.0000.00817.19
8.0.260.0040.00419.90
8.0.250.0030.00316.90
8.0.240.0040.00416.88
8.0.230.0030.00316.78
8.0.220.0000.00716.77
8.0.210.0060.00016.70
8.0.200.0000.00716.89
8.0.190.0000.00716.93
8.0.180.0000.00816.86
8.0.170.0000.00916.86
8.0.160.0040.00416.85
8.0.150.0030.00516.82
8.0.140.0080.00016.77
8.0.130.0000.00613.29
8.0.120.0040.00416.83
8.0.110.0040.00416.72
8.0.100.0040.00416.82
8.0.90.0030.00616.80
8.0.80.0050.01216.77
8.0.70.0070.00016.66
8.0.60.0050.00216.64
8.0.50.0070.00016.70
8.0.30.0060.01316.90
8.0.20.0100.01316.98
8.0.10.0070.00016.98
8.0.00.0070.01716.76
7.4.330.0000.00515.55
7.4.320.0000.00616.52
7.4.300.0030.00316.52
7.4.290.0040.00416.48
7.4.280.0060.00316.45
7.4.270.0030.00516.48
7.4.260.0000.00613.20
7.4.250.0070.00016.38
7.4.240.0050.00316.49
7.4.230.0000.00716.55
7.4.220.0020.00516.58
7.4.210.0070.00716.46
7.4.200.0000.00716.32
7.4.140.0090.01517.86
7.4.130.0030.01516.34
7.4.120.0140.00716.39
7.4.110.0110.00616.52
7.4.100.0060.01016.47
7.4.90.0130.00716.33
7.4.80.0090.00919.39
7.4.70.0130.00316.55
7.4.60.0060.01016.62
7.4.50.0040.01416.35
7.4.40.0120.01316.33
7.4.00.0130.00314.62
7.3.330.0000.00716.10
7.3.320.0030.00312.88
7.3.310.0030.00316.06
7.3.300.0000.00616.13
7.3.290.0040.01016.12
7.3.260.0080.01016.18
7.3.240.0100.00816.32
7.3.230.0100.00616.18
7.3.210.0120.00616.48
7.3.200.0130.00316.29
7.3.190.0060.00916.43
7.3.180.0100.00616.31
7.3.170.0140.00716.31
7.3.160.0030.01916.37
7.3.90.0000.01314.56
7.3.80.0100.00414.57
7.3.70.0080.00814.31
7.3.60.0030.01014.75
7.3.50.0150.00314.71
7.3.40.0100.00314.55
7.3.30.0100.00314.78
7.3.20.0070.00716.46
7.3.10.0030.01016.46
7.3.00.0030.01016.52
7.2.330.0070.01316.55
7.2.320.0120.00916.54
7.2.310.0130.00316.29
7.2.300.0080.01516.63
7.2.290.0120.00616.44
7.2.220.0060.00914.54
7.2.210.0000.01414.80
7.2.200.0140.00014.87
7.2.190.0060.01314.73
7.2.180.0060.01014.98
7.2.170.0030.01014.79
7.2.160.0030.01014.86
7.2.150.0000.01516.54
7.2.140.0060.01016.91
7.2.130.0090.00616.77
7.2.120.0060.00916.62
7.2.110.0060.00916.78
7.2.100.0060.00916.83
7.2.90.0120.00316.89
7.2.80.0110.00916.83
7.2.70.0090.00616.74
7.2.60.0040.01116.44
7.2.50.0110.00316.95
7.2.40.0120.00316.64
7.2.30.0030.01016.75
7.2.20.0070.00716.75
7.2.10.0030.01016.60
7.2.00.0070.00716.78
7.1.320.0110.00315.73
7.1.310.0120.00315.78
7.1.300.0110.00815.81
7.1.290.0070.00715.90
7.1.280.0060.00615.63
7.1.270.0060.00615.73
7.1.260.0090.00415.87
7.1.250.0060.00615.41

preferences:
46.43 ms | 403 KiB | 5 Q