3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "['text', 'text', 100, ['text', false], false, ['text', 200], 'text']"; $json = str_replace("'", '"', $str); print_r(json_decode($json));

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.4.120.0090.00824.02
8.4.110.0110.00822.33
8.4.100.0120.00817.75
8.4.90.0120.00918.33
8.4.80.0040.00617.61
8.4.70.0070.01318.00
8.4.60.0080.00318.70
8.4.50.0090.01117.43
8.4.40.0130.00619.40
8.4.30.0030.01618.67
8.4.20.0070.01420.46
8.4.10.0090.00617.51
8.3.250.0120.00618.93
8.3.240.0040.00517.25
8.3.230.0140.00616.57
8.3.220.0140.00517.13
8.3.210.0050.00216.66
8.3.200.0080.00116.36
8.3.190.0100.00818.64
8.3.180.0050.00316.62
8.3.170.0070.01117.36
8.3.160.0130.00618.30
8.3.150.0160.00316.52
8.3.140.0040.00416.66
8.3.130.0080.00316.39
8.3.120.0060.00320.68
8.3.110.0030.00620.94
8.3.100.0040.00418.31
8.3.90.0120.00316.35
8.3.80.0060.00318.31
8.3.70.0090.00616.63
8.3.60.0180.00016.38
8.3.50.0120.00617.39
8.3.40.0060.00818.59
8.3.30.0090.00618.46
8.3.20.0040.00420.28
8.3.10.0070.00020.30
8.3.00.0080.00022.30
8.2.290.0090.01020.50
8.2.280.0100.00818.39
8.2.270.0060.01217.14
8.2.260.0140.00316.34
8.2.250.0030.01018.37
8.2.240.0060.00318.68
8.2.230.0030.00622.58
8.2.220.0080.00024.06
8.2.210.0060.00926.77
8.2.200.0090.00016.50
8.2.190.0120.00316.58
8.2.180.0150.00618.43
8.2.170.0030.01022.96
8.2.160.0150.00020.35
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0000.00826.16
8.2.120.0050.00226.16
8.2.110.0070.00320.43
8.2.100.0060.00617.78
8.2.90.0000.00817.91
8.2.80.0030.00619.16
8.2.70.0030.00517.91
8.2.60.0030.00518.09
8.2.50.0050.00318.10
8.2.40.0060.00319.30
8.2.30.0040.00419.29
8.2.20.0000.00817.88
8.2.10.0040.00419.24
8.2.00.0000.00719.18
8.1.330.0130.00521.67
8.1.320.0110.00716.00
8.1.310.0000.00818.50
8.1.300.0030.00618.50
8.1.290.0080.00018.88
8.1.280.0140.00025.92
8.1.270.0040.00420.63
8.1.260.0000.00726.35
8.1.250.0080.00028.09
8.1.240.0040.00422.54
8.1.230.0090.00322.68
8.1.220.0000.00817.74
8.1.210.0030.00918.77
8.1.200.0080.00317.23
8.1.190.0030.00517.00
8.1.180.0090.00018.10
8.1.170.0080.00018.50
8.1.160.0070.00019.00
8.1.150.0030.00418.72
8.1.140.0030.00320.92
8.1.130.0000.00720.00
8.1.120.0070.00017.27
8.1.110.0030.00517.36
8.1.100.0060.00317.36
8.1.90.0040.00417.30
8.1.80.0040.00417.29
8.1.70.0000.01017.24
8.1.60.0000.00717.52
8.1.50.0040.00417.45
8.1.40.0000.00817.48
8.1.30.0050.00317.63
8.1.20.0000.01017.60
8.1.10.0000.00817.47
8.1.00.0050.00317.38
8.0.300.0050.00220.07
8.0.290.0050.00316.58
8.0.280.0000.00718.34
8.0.270.0080.00016.66
8.0.260.0060.00020.18
8.0.250.0000.00716.89
8.0.240.0000.00816.79
8.0.230.0030.00316.79
8.0.220.0030.00316.85
8.0.210.0000.00616.86
8.0.200.0030.00616.76
8.0.190.0000.00716.92
8.0.180.0000.00816.73
8.0.170.0060.00316.89
8.0.160.0000.00816.79
8.0.150.0040.00416.74
8.0.140.0000.00716.82
8.0.130.0000.00613.20
8.0.120.0030.00516.67
8.0.110.0040.00416.81
8.0.100.0000.00716.92
8.0.90.0040.00416.71
8.0.80.0070.00816.73
8.0.70.0030.00316.88
8.0.60.0000.00816.85
8.0.50.0040.00416.70
8.0.30.0150.01017.14
8.0.20.0110.00716.83
8.0.10.0050.00317.03
8.0.00.0090.00816.80
7.4.330.0050.00016.76
7.4.320.0000.00716.44
7.4.300.0040.00416.57
7.4.290.0030.00316.36
7.4.280.0040.00416.55
7.4.270.0040.00416.33
7.4.260.0000.00613.23
7.4.250.0040.00416.39
7.4.240.0020.00516.45
7.4.230.0070.00016.63
7.4.220.0040.00416.62
7.4.210.0090.00516.43
7.4.200.0030.00316.36
7.4.140.0070.01017.86
7.4.130.0070.01216.31
7.4.120.0030.01616.45
7.4.110.0120.00616.29
7.4.100.0130.01016.39
7.4.90.0060.01616.46
7.4.80.0110.00619.39
7.4.70.0090.00616.49
7.4.60.0070.01016.37
7.4.50.0030.01316.20
7.4.40.0140.00916.53
7.4.00.0050.01014.67
7.3.330.0060.00415.97
7.3.320.0000.00612.92
7.3.310.0000.00716.20
7.3.300.0050.00216.16
7.3.290.0030.00316.12
7.3.260.0110.00916.30
7.3.240.0090.01016.14
7.3.230.0060.01116.25
7.3.210.0070.01016.27
7.3.200.0090.01516.18
7.3.190.0160.00616.29
7.3.180.0120.00916.52
7.3.170.0160.00616.11
7.3.160.0090.00616.16
7.3.120.0070.01114.60
7.3.110.0090.00914.64
7.3.100.0000.01814.75
7.3.90.0110.00914.65
7.3.80.0090.00614.66
7.3.70.0100.00714.64
7.3.60.0070.00714.63
7.3.50.0100.00714.50
7.3.40.0100.00714.54
7.3.30.0090.00914.73
7.3.20.0060.00816.43
7.3.10.0080.01016.42
7.3.00.0080.00716.46
7.2.330.0150.00916.55
7.2.320.0060.01216.50
7.2.310.0160.00016.62
7.2.300.0100.00716.61
7.2.290.0150.00716.38
7.2.250.0120.00314.68
7.2.240.0090.01215.14
7.2.230.0000.01815.03
7.2.220.0130.00614.83
7.2.210.0070.00914.88
7.2.200.0090.00714.73
7.2.190.0100.00614.73
7.2.180.0080.00914.79
7.2.170.0110.00614.56
7.2.160.0080.01114.55
7.2.150.0090.00916.59
7.2.140.0000.01816.28
7.2.130.0140.00316.69
7.2.120.0030.01316.36
7.2.110.0130.00916.66
7.2.100.0130.00616.52
7.2.90.0060.01016.28
7.2.80.0100.00716.71
7.2.70.0070.01016.78
7.2.60.0070.01016.36
7.2.50.0030.01216.69
7.2.40.0100.00716.77
7.2.30.0000.01916.66
7.2.20.0130.02016.68
7.2.10.0030.01416.78
7.2.00.0030.01316.49
7.1.330.0030.01415.48
7.1.320.0050.01015.63
7.1.310.0050.01115.72
7.1.300.0070.00515.57
7.1.290.0110.00715.57
7.1.280.0110.00615.58
7.1.270.0090.00515.63
7.1.260.0050.01115.54
7.1.250.0030.01115.26

preferences:
26.55 ms | 403 KiB | 5 Q