3v4l.org

run code in 300+ PHP versions simultaneously
<?php $myArr = array( "success" => ( object ) array( "id" => "success=-message", "class" => "success-message", "inner-html" => "Congratulations! You have been succesfully logged in" ), "class" => ( object ) array( "id" => "success=-message", "class" => "success-message", "inner-html" => "Congratulations! You have been succesfully logged in" ), ); //Now you output the json version echo json_encode( $myArr );

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.40.0110.00718.91
8.3.30.0140.00418.99
8.3.20.0070.00020.19
8.3.10.0040.00423.66
8.3.00.0030.00519.38
8.2.170.0090.00622.96
8.2.160.0090.00920.32
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0080.00022.23
8.2.110.0090.00022.16
8.2.100.0040.00817.88
8.2.90.0000.00719.22
8.2.80.0040.00417.97
8.2.70.0050.00517.75
8.2.60.0000.00817.93
8.2.50.0000.00818.07
8.2.40.0040.00419.71
8.2.30.0040.00718.18
8.2.20.0040.00417.80
8.2.10.0040.00418.05
8.2.00.0000.00717.80
8.1.270.0080.00022.18
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00323.83
8.1.230.0080.00319.00
8.1.220.0050.00317.88
8.1.210.0000.00718.77
8.1.200.0080.00317.10
8.1.190.0040.00417.23
8.1.180.0000.00718.10
8.1.170.0000.00818.59
8.1.160.0000.00721.95
8.1.150.0070.00018.70
8.1.140.0000.00817.25
8.1.130.0000.00817.86
8.1.120.0000.00717.41
8.1.110.0030.00617.34
8.1.100.0000.00717.39
8.1.90.0000.00717.30
8.1.80.0040.00417.39
8.1.70.0030.00317.39
8.1.60.0000.00917.40
8.1.50.0050.00317.51
8.1.40.0040.00417.34
8.1.30.0050.00317.59
8.1.20.0040.00417.45
8.1.10.0070.00017.44
8.1.00.0000.00717.43
8.0.300.0000.00718.77
8.0.290.0040.00416.88
8.0.280.0040.00318.37
8.0.270.0030.00317.36
8.0.260.0030.00317.21
8.0.250.0030.00317.02
8.0.240.0000.00716.98
8.0.230.0000.00716.83
8.0.220.0040.00416.93
8.0.210.0030.00316.77
8.0.200.0000.00716.81
8.0.190.0080.00016.94
8.0.180.0000.00716.81
8.0.170.0030.00516.92
8.0.160.0040.00416.86
8.0.150.0040.00416.74
8.0.140.0040.00416.89
8.0.130.0070.00013.27
8.0.120.0000.00716.80
8.0.110.0070.00016.83
8.0.100.0000.00716.85
8.0.90.0000.00716.95
8.0.80.0160.00016.87
8.0.70.0040.00417.00
8.0.60.0000.00716.95
8.0.50.0040.00416.89
8.0.30.0140.00616.94
8.0.20.0100.01317.40
8.0.10.0040.00416.99
8.0.00.0100.00716.77
7.4.330.0030.00315.03
7.4.320.0000.00616.31
7.4.300.0000.00616.32
7.4.290.0030.00316.45
7.4.280.0040.00416.53
7.4.270.0000.00716.45
7.4.260.0070.00016.32
7.4.250.0000.00716.42
7.4.240.0040.00416.45
7.4.230.0070.00016.26
7.4.220.0070.01116.42
7.4.210.0060.00916.48
7.4.200.0030.00316.51
7.4.160.0120.00316.43
7.4.150.0070.01717.40
7.4.140.0130.00717.86
7.4.130.0110.00716.50
7.4.120.0100.00816.51
7.4.110.0100.01316.38
7.4.100.0070.01016.39
7.4.90.0060.01016.46
7.4.80.0080.00819.39
7.4.70.0080.00816.54
7.4.60.0100.00716.44
7.4.50.0060.00316.20
7.4.40.0080.00816.56
7.4.30.0080.01316.46
7.4.10.0070.01115.07
7.4.00.0070.00915.17
7.3.330.0000.00613.13
7.3.320.0000.00513.02
7.3.310.0030.00316.29
7.3.300.0020.00516.24
7.3.290.0100.00616.30
7.3.280.0130.00416.34
7.3.270.0070.01117.40
7.3.260.0090.00916.25
7.3.250.0080.01016.20
7.3.240.0100.01116.25
7.3.230.0070.01016.56
7.3.210.0050.01016.20
7.3.200.0170.00619.39
7.3.190.0080.01416.21
7.3.180.0110.00616.45
7.3.170.0070.01016.27
7.3.160.0120.00316.36
7.3.130.0100.01014.85
7.3.120.0050.01014.71
7.3.110.0040.01214.61
7.3.100.0020.01214.67
7.3.90.0050.00714.78
7.3.80.0070.00214.85
7.3.70.0070.00514.62
7.3.60.0070.00714.60
7.3.50.0020.01414.79
7.3.40.0050.00614.58
7.3.30.0060.00614.44
7.3.20.0030.01016.50
7.3.10.0060.00816.66
7.3.00.0050.00516.60
7.2.330.0130.00616.44
7.2.320.0100.01016.54
7.2.310.0030.01416.50
7.2.300.0070.01016.61
7.2.290.0080.00916.65
7.2.260.0090.00914.81
7.2.250.0090.00615.06
7.2.240.0030.00814.87
7.2.230.0080.00815.02
7.2.220.0090.00514.92
7.2.210.0040.00815.00
7.2.200.0050.00914.92
7.2.190.0100.00714.77
7.2.180.0080.00914.71
7.2.170.0040.01014.84
7.2.160.0050.01215.03
7.2.150.0060.00816.69
7.2.140.0030.01016.65
7.2.130.0050.00816.65
7.2.120.0090.00516.68
7.2.110.0050.01016.73
7.2.100.0070.00816.83
7.2.90.0140.00316.94
7.2.80.0090.00316.56
7.2.70.0050.01316.75
7.2.60.0060.00916.69
7.2.50.0050.01016.60
7.2.40.0060.01116.81
7.2.30.0060.00716.66
7.2.20.0080.00716.89
7.2.10.0020.01616.91
7.2.00.0020.01017.41
7.1.330.0070.00415.80
7.1.320.0050.00915.75
7.1.310.0050.00815.71
7.1.300.0040.01015.64
7.1.290.0050.01215.51
7.1.280.0050.00815.62
7.1.270.0050.00515.71
7.1.260.0050.01015.71
7.1.250.0050.00915.67
7.1.240.0030.01315.77
7.1.230.0100.00715.82
7.1.220.0030.00915.80
7.1.210.0030.01215.66
7.1.200.0070.00815.75
7.1.190.0040.01115.82
7.1.180.0000.01315.57
7.1.170.0100.00315.55
7.1.160.0060.00615.77
7.1.150.0070.00315.75
7.1.140.0070.00315.80
7.1.130.0000.01215.80
7.1.120.0000.00815.46
7.1.110.0100.00315.66
7.1.100.0070.00716.92
7.1.90.0060.00615.85
7.1.80.0030.01315.56
7.1.70.0090.00016.24
7.1.60.0040.01117.51
7.1.50.0080.01216.26
7.1.40.0070.00715.80
7.1.30.0100.00315.60
7.1.20.0040.01115.82
7.1.10.0040.01115.83
7.1.00.0030.04119.10
7.0.330.0100.00615.31
7.0.320.0070.00715.53
7.0.310.0000.01215.21
7.0.300.0060.00615.25
7.0.290.0040.00715.46
7.0.280.0050.00315.28
7.0.270.0100.00315.14
7.0.260.0000.01315.22
7.0.250.0070.00715.63
7.0.240.0030.00615.40
7.0.230.0000.01215.30
7.0.220.0070.00715.13
7.0.210.0070.00315.56
7.0.200.0030.00816.11
7.0.190.0060.00315.34
7.0.180.0030.00715.42
7.0.170.0070.00715.41
7.0.160.0000.00915.41
7.0.150.0040.01115.24
7.0.140.0080.03818.76
7.0.130.0000.01515.23
7.0.120.0070.00315.39
7.0.110.0110.00015.54
7.0.100.0070.00715.29
7.0.90.0370.04217.66
7.0.80.0280.04117.57
7.0.70.0280.02317.69
7.0.60.0200.04617.61
7.0.50.0230.03817.68
7.0.40.0080.04516.78
7.0.30.0120.04216.79
7.0.20.0120.02816.78
7.0.10.0050.04016.75
7.0.00.0070.04316.76
5.6.400.0060.01214.19
5.6.390.0040.01214.61
5.6.380.0000.00914.39
5.6.370.0070.01014.47
5.6.360.0090.00614.45
5.6.350.0080.00414.31
5.6.340.0060.00614.66
5.6.330.0060.00314.25
5.6.320.0000.00914.13
5.6.310.0030.01014.66
5.6.300.0040.00414.41
5.6.290.0040.01114.58
5.6.280.0100.03517.65
5.6.270.0060.00614.43
5.6.260.0150.00014.32
5.6.250.0110.00414.21
5.6.240.0100.03717.28
5.6.230.0110.02617.41
5.6.220.0050.03717.43
5.6.210.0120.03517.30
5.6.200.0050.04417.69
5.6.190.0080.04017.76
5.6.180.0060.03917.78
5.6.170.0050.05217.64
5.6.160.0060.04617.78
5.6.150.0030.03517.63
5.6.140.0100.04317.80
5.6.130.0060.03017.62
5.6.120.0050.02517.55
5.6.110.0100.04017.64
5.6.100.0100.04017.65
5.6.90.0100.04017.81
5.6.80.0020.03217.43
5.6.70.0080.04217.33
5.6.60.0070.02417.40
5.6.50.0070.03517.25
5.6.40.0050.03817.39
5.6.30.0080.04317.19
5.6.20.0020.02417.31
5.6.10.0070.04517.47
5.6.00.0070.04217.20
5.5.380.0100.02817.39
5.5.370.0030.04417.39
5.5.360.0020.02917.44
5.5.350.0060.04317.45
5.5.340.0050.04017.42
5.5.330.0060.04617.57
5.5.320.0160.03617.69
5.5.310.0130.03817.58
5.5.300.0050.03317.57
5.5.290.0120.04817.50
5.5.280.0080.04017.64
5.5.270.0070.04317.70
5.5.260.0050.03017.69
5.5.250.0050.04017.41
5.5.240.0120.03817.13
5.5.230.0080.04017.28
5.5.220.0150.02017.15
5.5.210.0050.04117.05
5.5.200.0020.03117.09
5.5.190.0050.04617.26
5.5.180.0030.03117.24
5.5.170.0070.00714.31
5.5.160.0070.04117.29
5.5.150.0080.04117.22
5.5.140.0060.03617.21
5.5.130.0050.03917.22
5.5.120.0070.02817.17
5.5.110.0050.04317.19
5.5.100.0030.04517.03
5.5.90.0090.02417.14
5.5.80.0100.02116.97
5.5.70.0080.04017.15
5.5.60.0030.02917.12
5.5.50.0020.04517.23
5.5.40.0050.04217.15
5.5.30.0100.03717.18
5.5.20.0090.03917.11
5.5.10.0080.04217.12
5.5.00.0100.04017.17
5.4.450.0070.04715.54
5.4.440.0080.02315.53
5.4.430.0060.04315.55
5.4.420.0020.03715.56
5.4.410.0050.03315.46
5.4.400.0070.04215.35
5.4.390.0020.03415.35
5.4.380.0080.02515.28
5.4.370.0030.04515.44
5.4.360.0080.04115.23
5.4.350.0050.04015.34
5.4.340.0070.02215.38
5.4.330.0100.00011.66
5.4.320.0060.04115.36
5.4.310.0080.03715.36
5.4.300.0050.02215.38
5.4.290.0050.03915.40
5.4.280.0070.04015.22
5.4.270.0050.02515.44
5.4.260.0020.03215.23
5.4.250.0030.04015.31
5.4.240.0060.02315.39
5.4.230.0090.03515.22
5.4.220.0030.04415.30
5.4.210.0040.04515.28
5.4.200.0060.04115.32
5.4.190.0080.03815.38
5.4.180.0030.04315.21
5.4.170.0130.03515.30
5.4.160.0080.04015.30
5.4.150.0080.03715.33
5.4.140.0020.03913.94
5.4.130.0030.03813.94
5.4.120.0070.03713.95
5.4.110.0050.03114.03
5.4.100.0050.03813.99
5.4.90.0050.04214.04
5.4.80.0030.04213.97
5.4.70.0080.03313.95
5.4.60.0030.04113.92
5.4.50.0050.03713.95
5.4.40.0070.03213.99
5.4.30.0050.02513.99
5.4.20.0020.02514.00
5.4.10.0110.03613.98
5.4.00.0020.04313.71
5.3.290.0030.06014.61
5.3.280.0030.08014.45
5.3.270.0070.08014.59
5.3.260.0070.07314.42
5.3.250.0030.07314.52
5.3.240.0070.07014.47
5.3.230.0000.05014.54
5.3.220.0030.07314.43
5.3.210.0030.06014.53
5.3.200.0070.06314.55
5.3.190.0100.04714.52
5.3.180.0100.06714.51
5.3.170.0030.06014.55
5.3.160.0100.04014.42
5.3.150.0100.07714.57
5.3.140.0100.04014.39
5.3.130.0100.06714.53
5.3.120.0130.04714.40
5.3.110.0030.04314.37
5.3.100.0030.06713.87
5.3.90.0170.06014.02
5.3.80.0130.06714.00
5.3.70.0000.05713.97
5.3.60.0000.07713.75
5.3.50.0130.07013.81
5.3.40.0030.03713.95
5.3.30.0130.07013.77
5.3.20.0130.06013.66
5.3.10.0030.07013.51
5.3.00.0030.06313.63
5.2.170.0030.06311.16
5.2.160.0030.05711.09
5.2.150.0030.06711.19
5.2.140.0070.05711.09
5.2.130.0130.02710.96
5.2.120.0000.05310.95
5.2.110.0070.06011.09
5.2.100.0030.06010.95
5.2.90.0000.04311.06
5.2.80.0270.02710.93
5.2.70.0170.05311.11
5.2.60.0070.05010.91
5.2.50.0030.06011.01
5.2.40.0030.06010.94
5.2.30.0100.04010.89
5.2.20.0070.05310.98
5.2.10.0030.06010.88
5.2.00.0030.05310.64
5.1.60.0100.03310.02
5.1.50.0000.0279.99
5.1.40.0030.0579.97
5.1.30.0030.05710.28
5.1.20.0000.06010.25
5.1.10.0030.04710.10
5.1.00.0070.05310.06
5.0.50.0070.0378.58
5.0.40.0070.0438.43
5.0.30.0070.0608.27
5.0.20.0030.0408.24
5.0.10.0030.0437.99
5.0.00.0070.0608.21
4.4.90.0000.0237.33
4.4.80.0070.0107.33
4.4.70.0000.0277.33
4.4.60.0030.0337.33
4.4.50.0000.0337.33
4.4.40.0030.0377.33
4.4.30.0000.0377.33
4.4.20.0000.0337.33
4.4.10.0030.0277.33
4.4.00.0000.0337.33
4.3.110.0000.0377.33
4.3.100.0070.0307.33
4.3.90.0000.0377.33
4.3.80.0030.0537.33
4.3.70.0000.0307.33
4.3.60.0100.0107.33
4.3.50.0030.0177.33
4.3.40.0030.0377.33
4.3.30.0000.0207.33
4.3.20.0000.0177.33
4.3.10.0030.0137.33
4.3.00.0000.0177.33

preferences:
49.93 ms | 400 KiB | 5 Q