3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = '{"accounts":[{"id":"1","0":"1","username":"testuser","1":"testuser","password":"testpass","2":"testpass","email":"test@user.com","3":"test@user.com","lastlogin":"2017-07-06 06:48:50","4":"2017-07-06 06:48:50"}]}'; $array = json_decode($json); echo json_encode($array, JSON_PRETTY_PRINT);

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.0130.00718.18
8.3.50.0100.01016.27
8.3.40.0110.00418.66
8.3.30.0120.00318.52
8.3.20.0030.00519.02
8.3.10.0000.00823.41
8.3.00.0080.00019.35
8.2.180.0070.01416.50
8.2.170.0100.00722.96
8.2.160.0110.00320.38
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0040.00420.47
8.2.120.0070.00026.16
8.2.110.0030.00622.09
8.2.100.0080.00417.84
8.2.90.0000.00819.22
8.2.80.0040.00417.97
8.2.70.0040.00417.50
8.2.60.0040.00417.80
8.2.50.0060.00318.10
8.2.40.0000.00922.10
8.2.30.0030.00620.91
8.2.20.0040.00418.00
8.2.10.0000.00717.96
8.2.00.0040.00418.05
8.1.280.0140.00725.92
8.1.270.0000.00824.66
8.1.260.0090.00626.35
8.1.250.0080.00028.09
8.1.240.0080.00023.84
8.1.230.0070.00422.31
8.1.220.0000.00917.76
8.1.210.0030.00518.77
8.1.200.0030.00617.00
8.1.190.0030.00617.23
8.1.180.0000.00718.10
8.1.170.0050.00318.59
8.1.160.0040.00419.09
8.1.150.0070.00018.82
8.1.140.0000.00919.54
8.1.130.0040.00418.80
8.1.120.0040.00417.41
8.1.110.0040.00417.36
8.1.100.0050.00217.41
8.1.90.0030.00617.32
8.1.80.0030.00717.25
8.1.70.0030.00317.32
8.1.60.0080.00017.47
8.1.50.0080.00017.45
8.1.40.0030.00517.49
8.1.30.0000.00717.44
8.1.20.0000.00717.63
8.1.10.0070.00017.45
8.1.00.0000.00717.37
8.0.300.0040.00418.77
8.0.290.0040.00416.60
8.0.280.0040.00418.46
8.0.270.0000.00717.34
8.0.260.0040.00416.83
8.0.250.0060.00017.00
8.0.240.0080.00016.98
8.0.230.0030.00616.91
8.0.220.0030.00316.85
8.0.210.0040.00416.85
8.0.200.0070.00016.85
8.0.190.0040.00416.90
8.0.180.0070.00016.85
8.0.170.0000.00816.84
8.0.160.0030.00316.82
8.0.150.0000.00716.68
8.0.140.0030.00316.68
8.0.130.0030.00313.21
8.0.120.0000.00716.69
8.0.110.0030.00316.63
8.0.100.0000.00716.82
8.0.90.0040.00416.81
8.0.80.0100.00716.80
8.0.70.0000.00716.65
8.0.60.0080.00016.70
8.0.50.0030.00516.86
8.0.30.0110.00717.18
8.0.20.0190.00317.40
8.0.10.0080.00016.95
8.0.00.0100.00716.52
7.4.330.0000.00515.55
7.4.320.0040.00416.43
7.4.300.0030.00316.44
7.4.290.0000.00916.52
7.4.280.0070.00016.52
7.4.270.0070.00016.52
7.4.260.0000.00613.21
7.4.250.0070.00016.49
7.4.240.0070.00016.38
7.4.230.0030.00516.36
7.4.220.0190.00916.33
7.4.210.0090.00816.59
7.4.200.0040.00416.64
7.4.160.0050.01016.42
7.4.150.0170.00717.40
7.4.140.0070.01217.86
7.4.130.0110.00616.70
7.4.120.0130.00416.39
7.4.110.0140.00716.25
7.4.100.0100.00716.41
7.4.90.0160.00016.57
7.4.80.0170.00019.39
7.4.70.0100.00716.52
7.4.60.0060.00916.34
7.4.50.0070.00316.42
7.4.40.0090.01216.35
7.4.30.0100.00716.41
7.4.10.0070.01114.86
7.4.00.0070.01014.81
7.3.330.0000.00512.98
7.3.320.0000.00613.02
7.3.310.0000.00616.19
7.3.300.0000.00616.12
7.3.290.0000.00716.03
7.3.280.0090.00716.13
7.3.270.0120.00617.40
7.3.260.0100.01116.12
7.3.250.0120.00716.30
7.3.240.0070.01016.34
7.3.230.0110.00616.33
7.3.210.0060.01016.38
7.3.200.0090.00616.26
7.3.190.0100.00616.19
7.3.180.0080.00816.34
7.3.170.0120.00316.25
7.3.160.0120.00316.13
7.3.130.0100.01014.84
7.3.120.0030.01514.41
7.3.110.0030.01214.93
7.3.100.0110.00414.73
7.3.90.0060.01314.76
7.3.80.0030.00914.38
7.3.70.0030.01414.43
7.3.60.0090.00614.39
7.3.50.0070.00714.59
7.3.40.0030.00914.52
7.3.30.0070.00714.59
7.3.20.0070.00716.67
7.3.10.0080.00216.66
7.3.00.0090.00516.31
7.2.330.0100.00716.51
7.2.320.0070.01116.73
7.2.310.0130.00316.45
7.2.300.0000.01616.64
7.2.290.0000.01716.37
7.2.260.0060.00615.22
7.2.250.0060.01214.93
7.2.240.0060.00915.09
7.2.230.0140.00315.22
7.2.220.0110.00715.13
7.2.210.0100.00715.02
7.2.200.0030.01314.91
7.2.190.0060.01014.96
7.2.180.0070.00714.83
7.2.170.0040.01115.19
7.2.160.0130.00315.02
7.2.150.0030.00716.56
7.2.140.0070.00716.75
7.2.130.0050.01116.92
7.2.120.0080.00616.95
7.2.110.0080.00416.75
7.2.100.0030.00916.73
7.2.90.0060.00916.75
7.2.80.0080.00416.96
7.2.70.0090.00716.73
7.2.60.0070.00516.68
7.2.50.0110.00316.81
7.2.40.0090.00516.67
7.2.30.0030.01316.89
7.2.20.0130.00316.91
7.2.10.0050.00916.80
7.2.00.0100.00416.73
7.1.330.0090.00915.70
7.1.320.0080.00815.75
7.1.310.0000.01115.84
7.1.300.0070.00415.39
7.1.290.0060.00615.70
7.1.280.0140.00315.72
7.1.270.0100.00615.88
7.1.260.0070.00315.73
7.1.250.0050.00915.79
7.1.240.0060.00715.79
7.1.230.0050.00715.69
7.1.220.0000.01415.71
7.1.210.0050.01115.68
7.1.200.0070.00615.72
7.1.190.0100.00415.80
7.1.180.0050.00715.56
7.1.170.0030.00915.48
7.1.160.0080.00215.73
7.1.150.0030.01215.74
7.1.140.0070.00715.57
7.1.130.0060.00815.72
7.1.120.0020.01115.74
7.1.110.0030.01215.70
7.1.100.0060.00815.56
7.1.90.0070.00515.52
7.1.80.0090.00515.55
7.1.70.0070.00915.69
7.1.60.0120.00921.50
7.1.50.0870.01121.34
7.1.40.0190.00921.28
7.1.30.0120.00821.33
7.1.20.0150.00621.26
7.1.10.0060.01015.44
7.1.00.1030.01115.42
7.0.330.0000.01415.25
7.0.320.0070.00615.20
7.0.310.0070.00315.27
7.0.300.0040.01015.36
7.0.290.0100.00415.26
7.0.280.0050.00915.28
7.0.270.0030.00815.31
7.0.260.0100.00315.34
7.0.250.0060.00615.35
7.0.240.0050.00815.22
7.0.230.0020.01015.32
7.0.220.0090.00515.27
7.0.210.0030.01015.33
7.0.200.0900.00615.20
7.0.190.1150.00915.17
7.0.180.0930.00914.99
7.0.170.0100.00715.06
7.0.160.0070.00715.05
7.0.150.0090.00615.01
7.0.140.0050.01115.06
7.0.130.0030.00915.10
7.0.120.0040.01015.02
7.0.110.0090.01114.99
7.0.100.0850.01114.90
7.0.90.0850.00914.92
7.0.80.0040.00915.08
7.0.70.0060.00815.11
7.0.60.0190.00514.81
7.0.50.0060.00915.06
7.0.40.0040.01113.66
7.0.30.0090.00413.82
7.0.20.0050.00913.77
7.0.10.0770.00613.74
7.0.00.0230.00713.81
5.6.400.0060.00614.34
5.6.390.0160.00014.59
5.6.380.0080.00414.10
5.6.370.0090.00014.16
5.6.360.0030.01014.01
5.6.350.0070.00714.51
5.6.340.0140.00014.45
5.6.330.0030.01014.07
5.6.320.0030.00714.46
5.6.310.0080.00014.23
5.6.300.0070.00714.66
5.6.290.0100.00014.45
5.6.280.0080.00614.39
5.6.270.0100.00314.27
5.6.260.0060.00314.43
5.6.250.0000.01214.46
5.6.240.0070.00714.25
5.6.230.0080.00414.27
5.6.220.0120.00314.27
5.6.210.0080.00714.35
5.6.200.0080.00814.38
5.6.190.0060.00314.09
5.6.180.0090.00614.11
5.6.170.0070.00713.97
5.6.160.0060.00314.43
5.6.150.0030.00714.18
5.6.140.0000.01014.30
5.6.130.0080.00414.30
5.6.120.0000.00814.12
5.6.110.0090.00614.38
5.6.100.0000.00914.26
5.6.90.0030.01414.43
5.6.80.0000.00914.07
5.6.70.0040.00814.02
5.6.60.0030.00814.06
5.6.50.0040.00714.43
5.6.40.0030.00614.03
5.6.30.0040.01114.28
5.6.20.0030.01314.38
5.6.10.0040.01213.96
5.6.00.0000.01514.17

preferences:
54.4 ms | 400 KiB | 5 Q