3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array( "2_1"=>"1", "2_2"=>"2", "2_3"=>"3" ); $arrr = array( "1_1"=>"_1", "1_2"=>$arr, "1_3"=>"Hello there!" ); echo json_ecode( $arrr ) ?>

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.0120.00318.68
8.3.50.0090.00921.85
8.3.40.0070.00718.91
8.3.30.0070.00718.96
8.3.20.0040.00420.16
8.3.10.0040.00422.05
8.3.00.0030.00522.38
8.2.180.0140.00716.37
8.2.170.0070.00722.96
8.2.160.0130.00319.22
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0050.00226.16
8.2.120.0080.00019.36
8.2.110.0000.00922.25
8.2.100.0000.01217.91
8.2.90.0080.00019.28
8.2.80.0000.00817.97
8.2.70.0080.00017.38
8.2.60.0040.00417.80
8.2.50.0040.00418.07
8.2.40.0030.00618.03
8.2.30.0040.00417.97
8.2.20.0040.00417.71
8.2.10.0000.00717.66
8.2.00.0000.00717.73
8.1.280.0100.00725.92
8.1.270.0000.00821.98
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00623.83
8.1.230.0070.00419.00
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0030.00717.23
8.1.190.0000.00817.53
8.1.180.0040.00418.66
8.1.170.0060.00318.44
8.1.160.0070.00022.17
8.1.150.0000.00818.53
8.1.140.0000.00917.42
8.1.130.0050.00217.70
8.1.120.0040.00417.30
8.1.110.0000.00717.33
8.1.100.0070.00017.40
8.1.90.0000.00717.41
8.1.80.0080.00017.40
8.1.70.0000.00717.37
8.1.60.0040.00417.56
8.1.50.0080.00017.52
8.1.40.0070.00017.48
8.1.30.0030.00617.55
8.1.20.0040.00417.61
8.1.10.0040.00417.44
8.1.00.0080.00017.51
8.0.300.0070.00018.77
8.0.290.0060.00317.18
8.0.280.0040.00418.37
8.0.270.0040.00417.22
8.0.260.0030.00316.76
8.0.250.0000.00716.92
8.0.240.0040.00416.85
8.0.230.0050.00216.86
8.0.220.0020.00516.82
8.0.210.0090.00016.88
8.0.200.0070.00016.96
8.0.190.0000.00716.88
8.0.180.0070.00016.95
8.0.170.0050.00316.88
8.0.160.0000.00816.88
8.0.150.0030.00316.89
8.0.140.0000.00716.87
8.0.130.0000.00613.37
8.0.120.0050.00316.83
8.0.110.0000.00716.93
8.0.100.0000.00716.84
8.0.90.0000.00817.00
8.0.80.0060.01616.90
8.0.70.0040.00416.90
8.0.60.0040.00416.91
8.0.50.0030.00516.91
8.0.30.0130.00617.09
8.0.20.0110.00817.40
8.0.10.0070.00017.05
8.0.00.0130.01116.69
7.4.330.0050.00015.00
7.4.320.0060.00016.43
7.4.300.0030.00316.41
7.4.290.0000.00716.63
7.4.280.0030.00316.54
7.4.270.0040.00416.52
7.4.260.0000.00816.46
7.4.250.0040.00416.45
7.4.240.0040.00416.62
7.4.230.0070.00016.59
7.4.220.0130.00616.67
7.4.210.0070.00716.60
7.4.200.0000.00716.66
7.4.190.0000.00716.45
7.4.160.0120.00416.44
7.4.150.0090.00917.40
7.4.140.0090.00817.86
7.4.130.0070.01016.52
7.4.120.0080.00916.45
7.4.110.0070.01016.45
7.4.100.0120.00616.45
7.4.90.0070.01316.65
7.4.80.0100.00719.39
7.4.70.0080.00816.40
7.4.60.0040.01416.34
7.4.50.0000.01216.65
7.4.40.0000.01522.77
7.4.30.0080.00816.68
7.4.00.0080.00614.80
7.3.330.0030.00313.17
7.3.320.0000.00513.15
7.3.310.0030.00316.25
7.3.300.0000.00616.22
7.3.290.0150.00016.23
7.3.280.0110.00916.33
7.3.270.0060.01017.40
7.3.260.0170.00716.56
7.3.250.0130.00616.39
7.3.240.0100.00716.36
7.3.230.0040.01416.40
7.3.210.0100.00716.38
7.3.200.0170.00019.39
7.3.190.0120.00616.31
7.3.180.0040.01116.43
7.3.170.0060.01016.57
7.3.160.0030.01216.43
7.3.120.0070.01014.95
7.2.330.0100.01016.49
7.2.320.0000.01716.28
7.2.310.0090.00616.53
7.2.300.0060.01016.17
7.2.290.0060.01116.54
7.2.60.0040.00816.57
7.2.00.0080.00519.36
7.1.200.0100.00615.74
7.1.100.0070.00717.80
7.1.70.0000.00917.02
7.1.60.0130.00319.82
7.1.50.0070.01416.93
7.1.00.0100.06722.42
7.0.200.0070.00716.76
7.0.140.0030.07321.98
7.0.70.3300.04319.90
7.0.60.0030.04019.89
7.0.50.0170.05717.87
7.0.40.0070.08720.20
7.0.30.0130.04320.09
7.0.20.0300.03320.04
7.0.10.0400.06720.19
7.0.00.0030.05020.12
5.6.280.0000.07720.84
5.6.210.0130.07720.59
5.6.200.0100.08318.11
5.6.190.0070.08020.27
5.6.180.0170.05720.63
5.6.170.0430.07720.33
5.6.160.0070.04320.33
5.6.150.0030.08018.09
5.6.140.0030.05018.21
5.6.130.0100.03718.18
5.6.120.0330.03021.14
5.6.110.0000.04321.11
5.6.100.0030.07321.10
5.6.90.0000.04321.00
5.6.80.0030.04320.43
5.6.70.0270.06320.51
5.5.350.0170.06720.30
5.5.340.0130.03017.98
5.5.330.0070.04020.45
5.5.320.0030.08320.21
5.5.310.0300.04320.27
5.5.300.0070.05017.92
5.5.290.0070.08318.01
5.5.280.0000.08720.64
5.5.270.0070.06320.67
5.5.260.0100.07720.78
5.5.250.0070.08020.57
5.5.240.0000.06320.36
5.4.450.0570.05019.52
5.4.440.1000.05019.63
5.4.430.0670.05019.31
5.4.420.0870.05319.44
5.4.410.0100.05719.35
5.4.400.0930.06719.28
5.4.390.0930.05018.99
5.4.380.0200.06318.72
5.4.370.0070.06018.49
5.4.360.0070.05318.67
5.4.350.0070.04011.97
5.4.340.0050.04011.97
5.4.320.0040.03712.45
5.4.310.0080.04212.45
5.4.300.0070.03612.45
5.4.290.0040.03912.45
5.4.280.0030.03812.35
5.4.270.0060.03712.34
5.4.260.0170.06018.83
5.4.250.0130.04318.79
5.4.240.0070.05319.02
5.4.230.0100.05018.64
5.4.220.0100.07018.91
5.4.210.0030.05718.75
5.4.200.0100.05018.89
5.4.190.0070.05318.91
5.4.180.0070.05318.69
5.4.170.0070.05318.87
5.4.160.0130.04718.68
5.4.150.0070.05719.00
5.4.140.0170.07016.49
5.4.130.0030.05316.44
5.4.120.0170.05716.29
5.4.110.0100.07316.34
5.4.100.0100.04716.48
5.4.90.0030.05016.41
5.4.80.0130.05716.43
5.4.70.0100.06316.33
5.4.60.0030.05316.27
5.4.50.0030.05316.46
5.4.40.0000.05316.55
5.4.30.0130.04316.49
5.4.20.0130.06316.39
5.4.10.0100.04716.16
5.4.00.0170.04015.97
5.3.290.0060.03812.80
5.3.280.0200.04014.58
5.3.270.0070.05314.59
5.3.260.0030.05714.62
5.3.250.0200.04314.46
5.3.240.0100.05714.64
5.3.230.0100.05314.29
5.3.220.0130.07314.27
5.3.210.0230.06314.40
5.3.200.0070.05014.48
5.3.190.0070.05014.56
5.3.180.0200.05714.42
5.3.170.0100.04714.56
5.3.160.0100.04714.57
5.3.150.0030.05314.58
5.3.140.0100.06314.70
5.3.130.0000.06014.70
5.3.120.0030.05314.46
5.3.110.0030.05714.32
5.3.100.0070.04713.80
5.3.90.0130.05714.10
5.3.80.0100.04313.79
5.3.70.0070.04714.11
5.3.60.0130.04313.77
5.3.50.0100.06313.80
5.3.40.0030.05014.09
5.3.30.0070.04313.95
5.3.20.0000.05313.71
5.3.10.0070.05713.43
5.3.00.0070.04713.33
5.2.170.0070.03711.15
5.2.160.0100.03311.04
5.2.150.0100.04711.14
5.2.140.0030.04311.14
5.2.130.0070.04011.05
5.2.120.0070.03711.21
5.2.110.0170.03011.00
5.2.100.0070.03711.11
5.2.90.0030.04011.09
5.2.80.0100.03311.00
5.2.70.0070.03711.10
5.2.60.0000.04310.88
5.2.50.0100.03710.94
5.2.40.0000.04310.90
5.2.30.0100.04310.99
5.2.20.0070.04310.89
5.2.10.0000.04310.77
5.2.00.0100.03310.47
5.1.60.0030.03310.14
5.1.50.0000.03710.03
5.1.40.0000.0379.75
5.1.30.0030.03710.23
5.1.20.0170.02310.10
5.1.10.0100.03710.12
5.1.00.0130.0339.83
5.0.50.0000.0408.73
5.0.40.0070.0238.64
5.0.30.0030.0437.98
5.0.20.0030.0278.27
5.0.10.0070.0378.23
5.0.00.0030.0407.99
4.4.90.0000.0236.37
4.4.80.0030.0206.37
4.4.70.0030.0206.37
4.4.60.0030.0206.37
4.4.50.0030.0276.37
4.4.40.0000.0376.84
4.4.30.0100.0176.84
4.4.20.0100.0176.84
4.4.10.0000.0236.84
4.4.00.0030.0336.84
4.3.110.0000.0236.84
4.3.100.0000.0236.84
4.3.90.0000.0206.84
4.3.80.0000.0336.84
4.3.70.0030.0176.84
4.3.60.0100.0236.84
4.3.50.0030.0206.84
4.3.40.0030.0306.84
4.3.30.0000.0236.84
4.3.20.0070.0276.84
4.3.10.0030.0236.84
4.3.00.0130.0207.32

preferences:
38.75 ms | 401 KiB | 5 Q