3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = '{"myint": 1, "mystring" : "mystring", "myintwithquotes":"2"}'; $array = json_decode($json,true); foreach($array AS $key => $value) { echo $key . ": " . gettype($value) . "\n"; }

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.0110.00418.43
8.3.50.0180.00721.09
8.3.40.0070.00718.71
8.3.30.0080.00820.23
8.3.20.0030.00620.53
8.3.10.0080.00020.93
8.3.00.0070.00023.61
8.2.180.0070.00716.32
8.2.170.0070.00722.96
8.2.160.0100.00320.54
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0030.00626.16
8.2.120.0040.00421.04
8.2.110.0000.00919.45
8.2.100.0080.00317.71
8.2.90.0030.00617.93
8.2.80.0000.00819.13
8.2.70.0050.00517.50
8.2.60.0040.00418.04
8.2.50.0030.00618.07
8.2.40.0030.00618.10
8.2.30.0000.00819.43
8.2.20.0040.00417.71
8.2.10.0070.00017.73
8.2.00.0060.00317.79
8.1.280.0060.00925.92
8.1.270.0000.00823.99
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0030.01322.23
8.1.230.0030.00920.92
8.1.220.0090.00017.79
8.1.210.0040.00418.86
8.1.200.0060.00617.23
8.1.190.0080.00017.51
8.1.180.0040.00418.10
8.1.170.0040.00418.50
8.1.160.0040.00418.93
8.1.150.0000.00718.63
8.1.140.0070.00017.48
8.1.130.0030.00318.81
8.1.120.0030.00517.34
8.1.110.0030.00417.34
8.1.100.0040.00417.43
8.1.90.0040.00417.37
8.1.80.0050.00217.40
8.1.70.0030.00317.38
8.1.60.0060.00317.46
8.1.50.0050.00217.36
8.1.40.0040.00717.35
8.1.30.0000.00817.63
8.1.20.0040.00417.56
8.1.10.0040.00417.36
8.1.00.0070.00017.42
8.0.300.0070.00020.15
8.0.290.0000.00817.16
8.0.280.0000.00718.50
8.0.270.0040.00417.21
8.0.260.0030.00318.45
8.0.250.0030.00316.93
8.0.240.0000.00816.87
8.0.230.0070.00016.96
8.0.220.0070.00016.80
8.0.210.0030.00316.91
8.0.200.0060.00016.91
8.0.190.0040.00416.98
8.0.180.0040.00416.82
8.0.170.0020.00516.80
8.0.160.0000.00716.71
8.0.150.0040.00416.84
8.0.140.0040.00416.75
8.0.130.0000.00513.38
8.0.120.0060.00316.84
8.0.110.0040.00416.82
8.0.100.0040.00416.89
8.0.90.0000.00716.77
8.0.80.0120.00416.91
8.0.70.0000.00816.85
8.0.60.0000.00716.82
8.0.50.0050.00216.79
8.0.30.0080.01017.02
8.0.20.0070.01217.40
8.0.10.0000.00716.85
8.0.00.0110.00716.87
7.4.330.0030.00316.66
7.4.320.0000.00716.40
7.4.300.0040.00416.59
7.4.290.0000.00716.63
7.4.280.0000.00816.43
7.4.270.0030.00316.59
7.4.260.0050.00013.27
7.4.250.0000.00816.55
7.4.240.0000.00716.53
7.4.230.0000.00716.52
7.4.220.0160.00616.63
7.4.210.0040.01116.57
7.4.200.0050.00316.34
7.4.190.0090.00016.75
7.4.160.0140.00616.53
7.4.150.0090.00917.40
7.4.140.0110.00917.86
7.4.130.0090.00916.48
7.4.120.0110.00916.42
7.4.110.0070.01016.52
7.4.100.0040.01916.49
7.4.90.0090.01216.46
7.4.80.0090.00919.39
7.4.70.0140.00416.73
7.4.60.0120.00316.47
7.4.50.0040.00416.14
7.4.40.0040.01422.77
7.4.30.0060.01316.44
7.4.00.0000.01114.79
7.3.330.0050.00012.97
7.3.320.0000.00513.12
7.3.310.0040.00416.32
7.3.300.0030.00316.29
7.3.290.0040.01316.20
7.3.280.0100.00616.23
7.3.270.0070.01017.40
7.3.260.0080.00918.24
7.3.250.0060.01216.26
7.3.240.0060.01316.18
7.3.230.0040.01316.50
7.3.210.0130.00316.28
7.3.200.0150.00319.39
7.3.190.0100.00716.35
7.3.180.0060.00916.34
7.3.170.0190.00616.58
7.3.160.0110.00516.63
7.3.120.0030.01415.10
7.3.110.0060.00614.71
7.3.100.0040.00714.37
7.3.90.0030.00914.76
7.3.80.0030.00914.71
7.3.70.0040.01114.91
7.3.60.0030.01014.95
7.3.50.0070.01014.68
7.3.40.0000.00914.82
7.3.30.0030.00914.84
7.3.20.0030.00616.69
7.3.10.0090.00616.80
7.3.00.0130.00316.74
7.2.330.0080.01216.66
7.2.320.0140.00416.81
7.2.310.0070.01416.68
7.2.300.0090.00916.52
7.2.290.0070.01016.64
7.2.240.0060.00914.92
7.2.230.0070.00714.88
7.2.220.0040.01114.95
7.2.210.0120.00315.02
7.2.200.0040.00415.08
7.2.190.0000.01115.09
7.2.180.0040.00815.04
7.2.170.0040.00814.98
7.2.160.0030.00915.05
7.2.150.0100.00716.97
7.2.140.0000.01716.92
7.2.130.0080.00816.89
7.2.120.0070.01016.98
7.2.110.0040.01416.94
7.2.100.0060.00616.94
7.2.90.0110.00416.82
7.2.80.0090.00916.93
7.2.70.0080.00416.83
7.2.60.0120.00217.00
7.2.50.0070.00416.70
7.2.40.0090.00616.95
7.2.30.0040.01516.93
7.2.20.0100.00317.06
7.2.10.0110.00416.73
7.2.00.0050.01117.97
7.1.330.0060.00615.73
7.1.320.0110.00015.53
7.1.310.0060.00915.56
7.1.300.0040.01115.66
7.1.290.0070.00715.50
7.1.280.0070.01015.56
7.1.270.0030.01115.62
7.1.260.0090.00315.49
7.1.250.0060.00615.59
7.1.200.0070.00415.84
7.1.100.0060.00917.96
7.1.70.0070.00717.07
7.1.60.0030.01619.17
7.1.50.0110.01517.09
7.1.00.0100.04022.33
7.0.200.0040.00416.91
7.0.140.0000.07722.08
7.0.70.0030.04721.63
7.0.60.0030.04021.77
7.0.50.0000.04722.01
7.0.40.0000.03720.03
7.0.30.0030.03320.07
7.0.20.0000.05020.10
7.0.10.0000.04020.02
7.0.00.0070.04320.03
5.6.210.0030.05020.59
5.6.200.0070.04321.17
5.6.190.0000.03721.03
5.6.180.0000.03721.00
5.6.170.0000.03720.93
5.6.160.0030.04021.02
5.6.150.0000.04021.04
5.6.140.0000.04721.06
5.6.130.0030.03721.05
5.6.120.0000.05020.95
5.6.110.0000.04720.92
5.6.100.0030.03720.92
5.6.90.0030.03320.94
5.6.80.0030.04320.55
5.6.70.0030.03320.39
5.6.60.0000.04720.48
5.6.50.0030.04020.55
5.6.40.0030.03320.36
5.6.30.0030.04320.38
5.6.20.0030.03320.39
5.6.10.0000.03320.37
5.6.00.0000.04320.40
5.5.350.0000.03720.29
5.5.340.0070.04020.77
5.5.330.0070.03320.80
5.5.320.0030.04320.84
5.5.310.0070.03320.75
5.5.300.0000.03720.90
5.5.290.0000.03720.63
5.5.280.0070.03720.91
5.5.270.0000.05020.87
5.5.260.0030.03320.84
5.5.250.0000.03720.59
5.5.240.0030.04320.27
5.5.230.0000.04320.02
5.5.220.0000.04720.24
5.5.210.0070.03720.26
5.5.200.0030.04320.25
5.5.190.0000.04320.24
5.5.180.0030.04720.08
5.5.160.0030.04020.27
5.5.150.0030.04320.25
5.5.140.0000.04720.24
5.5.130.0030.04020.23
5.5.120.0030.03320.11
5.5.110.0030.03720.24
5.5.100.0000.04019.96
5.5.90.0030.03320.07
5.5.80.0070.03320.12
5.5.70.0070.03020.03
5.5.60.0070.03020.02
5.5.50.0030.03720.05
5.5.40.0000.04020.05
5.5.30.0070.03720.02
5.5.20.0070.03720.07
5.5.10.0070.03719.98
5.5.00.0000.04720.07
5.4.450.0000.04719.11
5.4.440.0000.05019.35
5.4.430.0030.04319.27
5.4.420.0000.04719.45
5.4.410.0000.04719.31
5.4.400.0000.04019.16
5.4.390.0070.04018.92
5.4.380.0000.04319.10
5.4.370.0000.03718.96
5.4.360.0000.04018.78
5.4.350.0000.04318.83
5.4.340.0000.03719.08
5.4.320.0100.03718.90
5.4.310.0030.04018.90
5.4.300.0000.04018.84
5.4.290.0030.03718.98
5.4.280.0000.04718.91
5.4.270.0030.03319.05
5.4.260.0030.04319.11
5.4.250.0070.03019.22
5.4.240.0100.03019.04
5.4.230.0070.03719.06
5.4.220.0030.04018.77
5.4.210.0000.04319.04
5.4.200.0030.03018.79
5.4.190.0030.04019.24
5.4.180.0100.03319.04
5.4.170.0070.03318.80
5.4.160.0030.04019.01
5.4.150.0030.04319.09
5.4.140.0030.03316.31
5.4.130.0000.03016.35
5.4.120.0000.03016.32
5.4.110.0000.03016.38
5.4.100.0000.03016.41
5.4.90.0000.03016.30
5.4.80.0030.02716.29
5.4.70.0000.03316.26
5.4.60.0000.03316.42
5.4.50.0030.03716.28
5.4.40.0000.03316.49
5.4.30.0070.03316.34
5.4.20.0100.03316.20
5.4.10.0000.04316.17
5.4.00.0000.04015.68
5.3.290.0070.04014.63
5.3.280.0000.04014.53
5.3.270.0030.04014.52
5.3.260.0000.03714.46
5.3.250.0000.03314.61
5.3.240.0070.07714.52
5.3.230.0030.03014.42
5.3.220.0000.03014.48
5.3.210.0000.03314.42
5.3.200.0000.03014.44
5.3.190.0000.03014.56
5.3.180.0030.02714.42
5.3.170.0000.04314.55
5.3.160.0030.03314.51
5.3.150.0070.03014.55
5.3.140.0000.03714.54
5.3.130.0000.03714.55
5.3.120.0000.04014.53
5.3.110.0000.04314.53
5.3.100.0000.04013.85
5.3.90.0000.03013.88
5.3.80.0000.03314.00
5.3.70.0000.03713.94
5.3.60.0030.03313.96
5.3.50.0000.03313.70
5.3.40.0000.03713.88
5.3.30.0000.04013.89
5.3.20.0030.03013.70
5.3.10.0030.03313.50
5.3.00.0030.03313.39
5.2.170.0000.03311.10
5.2.160.0000.03311.06
5.2.150.0000.03311.09
5.2.140.0000.03011.14
5.2.130.0000.03310.94
5.2.120.0030.02710.92
5.2.110.0000.03011.14
5.2.100.0070.02011.05
5.2.90.0100.05311.15
5.2.80.0100.05710.93
5.2.70.0070.05711.13
5.2.60.0030.06311.07
5.2.50.0070.06310.96
5.2.40.0000.05710.99
5.2.30.0070.06010.89
5.2.20.0030.05710.80
5.2.10.0030.06010.90
5.2.00.0030.05710.71
5.1.60.0070.0479.82
5.1.50.0000.0539.87
5.1.40.0030.0509.96
5.1.30.0100.04310.39
5.1.20.0000.05710.41
5.1.10.0100.0339.95
5.1.00.0000.05010.07
5.0.50.0070.0438.57
5.0.40.0000.0408.40
5.0.30.0000.0478.21
5.0.20.0000.0478.30
5.0.10.0000.0378.20
5.0.00.0000.0608.25
4.4.90.0030.0308.20
4.4.80.0000.0308.20
4.4.70.0070.0308.20
4.4.60.0000.0238.20
4.4.50.0000.0308.20
4.4.40.0000.0438.20
4.4.30.0030.0338.20
4.4.20.0000.0338.20
4.4.10.0030.0338.20
4.4.00.0000.0508.20
4.3.110.0070.0238.20
4.3.100.0000.0308.20
4.3.90.0000.0338.20
4.3.80.0000.0578.20
4.3.70.0030.0338.20
4.3.60.0000.0308.20
4.3.50.0000.0378.20
4.3.40.0000.0508.20
4.3.30.0030.0308.20
4.3.20.0030.0378.20
4.3.10.0070.0308.20
4.3.00.0070.0308.20

preferences:
50.48 ms | 401 KiB | 5 Q