3v4l.org

run code in 300+ PHP versions simultaneously
<?php /** * Response represents an HTTP response in JSON format. * * Note that this class does not force the returned JSON content to be an * object. It is however recommended that you do return an object as it * protects yourself against XSSI and JSON-JavaScript Hijacking. * * @see https://www.owasp.org/index.php/OWASP_AJAX_Security_Guidelines#Always_return_JSON_with_an_Object_on_the_outside * * @author Igor Wiedler <igor@wiedler.ch> */ class JsonResponse { protected $data; protected $callback; protected $encodingOptions = JSON_HEX_TAG; }

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.0100.00318.18
8.3.50.0070.01221.92
8.3.40.0110.00418.54
8.3.30.0140.00318.97
8.3.20.0070.00020.29
8.3.10.0030.00521.92
8.3.00.0060.00322.49
8.2.180.0090.00616.50
8.2.170.0070.00722.96
8.2.160.0070.00719.08
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0030.00519.23
8.2.110.0060.00322.13
8.2.100.0090.00319.51
8.2.90.0040.00419.09
8.2.80.0050.00317.97
8.2.70.0030.00617.25
8.2.60.0000.00817.78
8.2.50.0040.00418.07
8.2.40.0000.00819.82
8.2.30.0080.00017.93
8.2.20.0000.00717.58
8.2.10.0070.00017.54
8.2.00.0000.00817.62
8.1.280.0070.01125.92
8.1.270.0080.00022.20
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0040.00423.94
8.1.230.0080.00319.09
8.1.220.0030.00617.74
8.1.210.0060.00318.77
8.1.200.0070.00317.10
8.1.190.0090.00017.26
8.1.180.0070.00018.48
8.1.170.0040.00418.59
8.1.160.0070.00022.00
8.1.150.0000.00818.57
8.1.140.0000.00917.33
8.1.130.0070.00017.76
8.1.120.0080.00017.26
8.1.110.0000.00717.32
8.1.100.0000.00717.27
8.1.90.0000.00717.34
8.1.80.0030.00317.28
8.1.70.0070.00017.21
8.1.60.0060.00317.45
8.1.50.0040.00417.29
8.1.40.0040.00417.41
8.1.30.0020.00517.54
8.1.20.0040.00417.49
8.1.10.0050.00217.39
8.1.00.0040.00417.31
8.0.300.0000.00718.77
8.0.290.0000.00716.93
8.0.280.0030.00318.30
8.0.270.0030.00317.00
8.0.260.0040.00416.61
8.0.250.0000.00716.79
8.0.240.0000.00716.86
8.0.230.0000.00716.84
8.0.220.0060.00016.73
8.0.210.0070.00016.79
8.0.200.0000.00616.78
8.0.190.0000.00716.72
8.0.180.0030.00316.69
8.0.170.0070.00016.67
8.0.160.0040.00416.65
8.0.150.0000.00716.74
8.0.140.0000.00716.76
8.0.130.0030.00313.20
8.0.120.0040.00416.76
8.0.110.0070.00016.64
8.0.100.0000.00816.61
8.0.90.0070.00016.71
8.0.80.0150.00616.75
8.0.70.0040.00416.58
8.0.60.0070.00016.64
8.0.50.0040.00416.70
8.0.30.0110.00816.98
8.0.20.0120.00717.40
8.0.10.0070.00016.82
8.0.00.0030.01616.57
7.4.330.0000.00615.02
7.4.320.0000.00616.47
7.4.300.0060.00016.35
7.4.290.0030.00316.33
7.4.280.0030.00416.50
7.4.270.0000.00816.44
7.4.260.0030.00316.34
7.4.250.0000.00816.32
7.4.240.0030.00516.37
7.4.230.0040.00416.44
7.4.220.0080.00816.48
7.4.210.0050.01016.46
7.4.200.0070.00016.49
7.4.190.0070.00016.50
7.4.160.0140.00616.34
7.4.150.0110.00717.40
7.4.140.0100.01217.86
7.4.130.0100.01216.41
7.4.120.0090.00816.34
7.4.110.0120.00416.42
7.4.100.0090.00916.35
7.4.90.0190.00016.25
7.4.80.0120.00619.39
7.4.70.0070.01016.31
7.4.60.0090.00716.30
7.4.50.0000.00416.50
7.4.40.0030.01322.77
7.4.30.0100.00616.18
7.4.00.0090.00614.33
7.3.330.0000.00513.14
7.3.320.0020.00213.23
7.3.310.0030.00316.26
7.3.300.0070.00016.16
7.3.290.0090.00916.15
7.3.280.0070.00916.14
7.3.270.0150.00917.40
7.3.260.0160.00016.35
7.3.250.0080.01316.21
7.3.240.0100.00716.45
7.3.230.0150.00416.39
7.3.210.0140.00916.16
7.3.200.0060.01219.39
7.3.190.0150.00616.12
7.3.180.0040.01116.39
7.3.170.0120.00916.36
7.3.160.0040.01116.42
7.3.120.0130.00314.38
7.2.330.0060.00916.41
7.2.320.0230.00016.43
7.2.310.0110.00616.50
7.2.300.0120.00616.16
7.2.290.0030.01316.60
7.2.60.0030.00916.65
7.2.00.0000.01319.18
7.1.200.0250.00015.32
7.1.100.0030.01017.98
7.1.70.0000.01017.00
7.1.60.0070.01719.82
7.1.50.0090.00916.86
7.1.00.0030.07722.53
7.0.200.0050.00516.28
7.0.140.0000.07322.00
7.0.60.0130.08019.81
7.0.50.0070.04717.88
7.0.40.0070.04320.18
7.0.30.0300.04320.21
7.0.20.0270.08020.32
7.0.10.0430.08320.10
7.0.00.0230.06720.20
5.6.280.0070.08721.12
5.6.210.0100.04320.51
5.6.200.0070.05718.28
5.6.190.0030.08720.62
5.6.180.3870.04020.64
5.6.170.0330.05020.58
5.6.160.0130.04720.39
5.6.150.0070.07018.27
5.6.140.0130.07718.16
5.6.130.0100.05018.25
5.6.120.0000.04321.03
5.6.110.0100.05721.14
5.6.100.0070.06320.95
5.6.90.0030.08321.10
5.6.80.0030.06020.35
5.6.70.0300.08020.35
5.5.350.0030.08720.35
5.5.340.0130.05017.95
5.5.330.0000.09020.37
5.5.320.0230.04720.38
5.5.310.0270.08020.30
5.5.300.0030.09017.97
5.5.290.0130.07317.99
5.5.280.0130.06720.77
5.5.270.0100.08720.72
5.5.260.0170.07320.88
5.5.250.0000.04320.68
5.5.240.0000.08020.18
5.4.450.0870.05319.20
5.4.440.0800.05019.46
5.4.430.1070.05019.70
5.4.420.0800.05719.19
5.4.410.0800.05019.08
5.4.400.0700.00018.67
5.4.390.0730.00018.61
5.4.380.0300.05318.76
5.4.370.0270.05018.63
5.4.360.0400.04018.46
5.4.350.0230.05318.70
5.4.340.0270.05018.56
5.4.320.0050.03912.50
5.4.310.0060.04112.50
5.4.300.0070.03412.50
5.4.290.0070.04712.49
5.4.280.0080.03312.39
5.4.270.0120.03712.39
5.4.260.0100.05018.96
5.4.250.0130.05018.80
5.4.240.0000.08318.95
5.4.230.0000.05718.95
5.4.220.0070.05718.65
5.4.210.0200.04018.80
5.4.200.0070.05319.02
5.4.190.0170.06018.65
5.4.180.0130.07018.95
5.4.170.0100.05319.00
5.4.160.0100.05018.89
5.4.150.0100.05319.10
5.4.140.0070.05016.34
5.4.130.0000.05716.32
5.4.120.0100.04716.42
5.4.110.0130.04716.38
5.4.100.0130.04316.65
5.4.90.0030.05716.37
5.4.80.0030.06316.54
5.4.70.0130.04316.47
5.4.60.0130.06716.35
5.4.50.0000.07316.34
5.4.40.0100.06716.62
5.4.30.0130.06316.63
5.4.20.0100.07016.40
5.4.10.0130.04716.45
5.4.00.0070.05015.77
5.3.290.0030.04212.80
5.3.280.0100.05014.65
5.3.270.0170.06714.73
5.3.260.0030.05714.66
5.3.250.0070.05014.67
5.3.240.0030.05314.52
5.3.230.0030.05714.59
5.3.220.0070.05014.54
5.3.210.0130.05714.79
5.3.200.0030.05714.48
5.3.190.0030.05714.38
5.3.180.0130.04314.71
5.3.170.0200.06014.52
5.3.160.0070.05014.64
5.3.150.0130.06314.64
5.3.140.0100.04714.72
5.3.130.0030.05714.62
5.3.120.0000.06014.67
5.3.110.0100.05014.62
5.3.100.0200.04014.25
5.3.90.0070.05013.91
5.3.80.0100.06313.91
5.3.70.0130.05013.92
5.3.60.0100.05013.99
5.3.50.0030.05314.16
5.3.40.0100.04714.04
5.3.30.0130.06713.88
5.3.20.0100.07013.59
5.3.10.0130.04713.63
5.3.00.0070.05013.71

preferences:
41.72 ms | 401 KiB | 5 Q