3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = '{"a":1,"b":2,"c":3,"d":4,"e":5}'; $assoc = true; $result = json_decode ($json, $assoc); foreach($result as $line) print_r($line) ; ?>

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.60.0140.00716.25
8.3.50.0100.00921.95
8.3.40.0110.00418.42
8.3.30.0110.00418.74
8.3.20.0050.00320.18
8.3.10.0070.00021.82
8.3.00.0000.00819.25
8.2.180.0110.01118.16
8.2.170.0170.00322.96
8.2.160.0110.00420.52
8.2.150.0050.00224.18
8.2.140.0070.00424.66
8.2.130.0070.00026.16
8.2.120.0040.00419.77
8.2.110.0070.01022.25
8.2.100.0070.00419.48
8.2.90.0000.00719.17
8.2.80.0050.00317.97
8.2.70.0060.00317.63
8.2.60.0060.00319.54
8.2.50.0030.00618.07
8.2.40.0040.00417.99
8.2.30.0040.00418.11
8.2.20.0040.00417.65
8.2.10.0040.00418.09
8.2.00.0040.00417.84
8.1.280.0100.00325.92
8.1.270.0040.00420.37
8.1.260.0070.00026.35
8.1.250.0070.00028.09
8.1.240.0100.00023.83
8.1.230.0060.00617.42
8.1.220.0090.00017.79
8.1.210.0000.00818.77
8.1.200.0040.00817.35
8.1.190.0000.00817.23
8.1.180.0030.00518.10
8.1.170.0030.00620.28
8.1.160.0040.00421.92
8.1.150.0070.00018.82
8.1.140.0080.00017.30
8.1.130.0070.00017.73
8.1.120.0040.00717.39
8.1.110.0040.00417.45
8.1.100.0000.00717.40
8.1.90.0030.00517.44
8.1.80.0000.00817.32
8.1.70.0070.00017.32
8.1.60.0060.00317.57
8.1.50.0000.00917.37
8.1.40.0040.00417.38
8.1.30.0000.00817.63
8.1.20.0000.00817.70
8.1.10.0030.00817.46
8.1.00.0000.00817.36
8.0.300.0040.00418.77
8.0.290.0000.00716.63
8.0.280.0030.00318.43
8.0.270.0000.00717.25
8.0.260.0000.00717.24
8.0.250.0030.00316.96
8.0.240.0070.00016.95
8.0.230.0030.00316.96
8.0.220.0000.00716.77
8.0.210.0000.00716.87
8.0.200.0030.00316.92
8.0.190.0040.00416.90
8.0.180.0050.00216.89
8.0.170.0040.00416.79
8.0.160.0030.00316.89
8.0.150.0030.00416.88
8.0.140.0050.00316.80
8.0.130.0000.00813.27
8.0.120.0000.00716.80
8.0.110.0040.00416.72
8.0.100.0050.00316.72
8.0.90.0040.00416.74
8.0.80.0090.00616.87
8.0.70.0080.00016.75
8.0.60.0040.00416.82
8.0.50.0040.00416.88
8.0.30.0080.01517.13
8.0.20.0110.01117.40
8.0.10.0000.00717.04
8.0.00.0090.00916.84
7.4.330.0050.00015.15
7.4.320.0000.00616.60
7.4.300.0070.00016.60
7.4.290.0000.00716.63
7.4.280.0000.00716.58
7.4.270.0070.00016.39
7.4.260.0030.00316.39
7.4.250.0030.00616.45
7.4.240.0030.00516.56
7.4.230.0040.00416.61
7.4.220.0090.00916.53
7.4.210.0070.00916.61
7.4.200.0000.00716.49
7.4.160.0110.00416.24
7.4.150.0180.00017.40
7.4.140.0110.01117.86
7.4.130.0080.01416.50
7.4.120.0090.00816.48
7.4.110.0130.00516.57
7.4.100.0100.01016.47
7.4.90.0170.00016.64
7.4.80.0110.00619.39
7.4.70.0130.00316.48
7.4.60.0100.01016.36
7.4.50.0030.00316.46
7.4.40.0120.00416.43
7.4.30.0120.00316.32
7.4.00.0050.01115.00
7.3.330.0030.00313.15
7.3.320.0060.00613.16
7.3.310.0070.00016.33
7.3.300.0030.00316.20
7.3.290.0070.00016.24
7.3.280.0090.00716.23
7.3.270.0070.01017.40
7.3.260.0160.00616.26
7.3.250.0120.00516.32
7.3.240.0070.01116.33
7.3.230.0120.00616.51
7.3.210.0090.01016.14
7.3.200.0070.01019.39
7.3.190.0060.00916.32
7.3.180.0090.00616.63
7.3.170.0080.01316.56
7.3.160.0060.01016.35
7.3.120.0030.01415.07
7.3.110.0100.00714.70
7.3.100.0040.00715.09
7.3.90.0070.00414.89
7.3.80.0090.00614.85
7.3.70.0030.01014.81
7.3.60.0090.00614.66
7.3.50.0060.00614.93
7.3.40.0040.01114.31
7.3.30.0110.00414.81
7.3.20.0060.00316.86
7.3.10.0040.01116.67
7.3.00.0130.00016.43
7.2.330.0070.01016.49
7.2.320.0100.00616.75
7.2.310.0050.00416.61
7.2.300.0030.01716.68
7.2.290.0100.00716.62
7.2.250.0090.00915.12
7.2.240.0030.01715.03
7.2.230.0040.01415.15
7.2.220.0100.00315.17
7.2.210.0060.00915.23
7.2.200.0030.01214.78
7.2.190.0070.01014.71
7.2.180.0090.00615.01
7.2.170.0070.00314.73
7.2.00.0070.00719.36
7.1.330.0070.00715.55
7.1.320.0040.00815.64
7.1.310.0000.01315.81
7.1.300.0030.01115.64
7.1.290.0000.01415.77
7.1.280.0090.00615.93
7.1.270.0060.01015.79
7.1.260.0060.00315.75
7.1.100.0150.00418.04
7.1.70.0040.00717.01
7.1.60.0120.01219.50
7.1.50.0070.01516.95
7.1.00.0030.07722.37
7.0.200.0160.00314.82
7.0.140.0100.06022.09
7.0.60.0070.04019.88
7.0.50.0130.06717.79
7.0.40.0100.08720.02
7.0.30.0470.05020.00
7.0.20.0230.07720.18
7.0.10.0170.05019.99
7.0.00.0100.04720.04
5.6.280.0070.08721.07
5.6.210.0130.08320.73
5.6.200.0070.09018.15
5.6.190.0030.05020.39
5.6.180.0270.06720.39
5.6.170.0400.03720.49
5.6.160.0130.08020.70
5.6.150.0130.07318.21
5.6.140.0070.08018.20
5.6.130.0070.08018.17
5.6.120.0100.08721.01
5.6.110.0170.07021.00
5.6.100.0100.05021.13
5.6.90.0100.03720.96
5.6.80.0170.07020.47
5.6.70.0270.05020.39
5.5.350.0230.07320.44
5.5.340.0070.03318.00
5.5.330.0030.09020.57
5.5.320.0070.08020.07
5.5.310.0300.06020.20
5.5.300.0070.03717.91
5.5.290.0070.05717.91
5.5.280.0100.07720.84
5.5.270.0070.08320.66
5.5.260.0130.06720.79
5.5.250.0070.06020.69
5.5.240.0100.06720.07
5.4.450.0300.04719.32
5.4.440.0230.05719.26
5.4.430.0200.05319.58
5.4.420.0200.04719.62
5.4.410.0230.06718.93
5.4.400.0430.07318.74
5.4.390.0370.07718.49
5.4.380.0430.07318.68
5.4.370.0300.05318.52
5.4.360.0300.05318.61
5.4.350.0330.06018.71
5.4.340.0470.05018.63
5.4.320.0330.06018.67
5.4.310.0300.06018.64
5.4.300.0400.05718.77
5.4.290.0430.05318.61
5.4.280.0430.05718.56
5.4.270.0400.06718.48
5.4.260.0430.07318.48
5.4.250.0470.06318.62
5.4.240.0330.07718.54
5.4.230.0400.06318.59
5.4.220.0500.08018.61
5.4.210.0330.07718.45
5.4.200.0500.07016.38
5.4.190.0470.07018.59
5.4.180.0430.07318.64
5.4.170.0500.07318.70
5.4.160.0570.05018.70
5.4.150.0430.06018.75
5.4.140.0470.07016.14
5.4.130.0570.05716.11
5.4.120.0470.07716.36
5.4.110.0470.06716.16
5.4.100.0370.06716.29
5.4.90.0470.06016.20
5.4.80.0530.05716.16
5.4.70.0400.05316.18
5.4.60.0330.07016.24
5.4.50.0430.06316.32
5.4.40.0400.06316.22
5.4.30.0430.06316.29
5.4.20.0370.06716.09
5.4.10.0400.06016.22
5.4.00.0430.06015.68
5.3.290.0400.05714.59
5.3.280.0400.05014.54
5.3.270.0330.06014.60
5.3.260.0330.07714.61
5.3.250.0300.07714.52
5.3.240.0530.06314.57
5.3.230.0400.07714.50
5.3.220.0500.04014.51
5.3.210.0530.05014.59
5.3.200.0370.06314.54
5.3.190.0330.08014.48
5.3.180.0430.07714.54
5.3.170.0300.07714.47
5.3.160.0500.06714.49
5.3.150.0200.06714.52
5.3.140.0570.05314.53
5.3.130.0370.07014.46
5.3.120.0600.06314.49
5.3.110.0470.07014.48
5.3.100.0330.07013.95
5.3.90.0400.05714.02
5.3.80.0330.06313.91
5.3.70.0570.05014.00
5.3.60.0530.06014.00
5.3.50.0330.06313.89
5.3.40.0400.06014.04
5.3.30.0300.05713.88
5.3.20.0530.07013.61
5.3.10.0630.06013.62
5.3.00.0430.06313.63
5.2.170.0230.04711.17
5.2.160.0270.05711.18
5.2.150.0300.07011.20
5.2.140.0270.06711.09
5.2.130.0400.05311.08
5.2.120.0400.05711.11
5.2.110.0370.05711.15
5.2.100.0270.05311.25
5.2.90.0300.05311.07
5.2.80.0270.05711.03
5.2.70.0200.04711.16
5.2.60.0400.05011.05
5.2.50.0400.05310.93
5.2.40.0330.05010.98
5.2.30.0270.05310.93
5.2.20.0300.05711.03
5.2.10.0300.04011.03
5.2.00.0230.05010.83
5.1.60.0300.03010.01
5.1.50.0300.0379.98
5.1.40.0230.05310.00
5.1.30.0300.04010.43
5.1.20.0400.03710.38
5.1.10.0200.04310.10
5.1.00.0270.04710.07
5.0.50.0200.0278.60
5.0.40.0070.0378.44
5.0.30.0130.0508.36
5.0.20.0100.0308.38
5.0.10.0230.0378.35
5.0.00.0130.0578.25
4.4.90.0300.0237.05
4.4.80.0100.0307.06
4.4.70.0230.0137.06
4.4.60.0170.0277.06
4.4.50.0100.0337.06
4.4.40.0300.0477.06
4.4.30.0270.0177.06
4.4.20.0170.0277.06
4.4.10.0170.0277.06
4.4.00.0270.0337.06
4.3.110.0130.0337.06
4.3.100.0170.0277.06
4.3.90.0230.0237.06
4.3.80.0170.0407.06
4.3.70.0170.0307.06
4.3.60.0130.0307.06
4.3.50.0200.0237.06
4.3.40.0100.0477.06
4.3.30.0070.0237.06
4.3.20.0030.0277.06
4.3.10.0130.0137.06
4.3.00.0000.0236.74

preferences:
49.14 ms | 401 KiB | 5 Q