3v4l.org

run code in 300+ PHP versions simultaneously
<?php print_r(array( 'JSON_ERROR_NONE' => JSON_ERROR_NONE, 'JSON_ERROR_DEPTH' => JSON_ERROR_DEPTH, 'JSON_ERROR_STATE_MISMATCH' => JSON_ERROR_STATE_MISMATCH, 'JSON_ERROR_CTRL_CHAR' => JSON_ERROR_CTRL_CHAR, 'JSON_ERROR_SYNTAX' => JSON_ERROR_SYNTAX, 'JSON_ERROR_UTF8' => JSON_ERROR_UTF8, 'JSON_ERROR_RECURSION' => JSON_ERROR_RECURSION, 'JSON_ERROR_INF_OR_NAN' => JSON_ERROR_INF_OR_NAN, 'JSON_ERROR_UNSUPPORTED_TYPE' => JSON_ERROR_UNSUPPORTED_TYPE )); $vTest = array("test"=> null); echo json_encode($vTest);

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.4.20.0150.00617.92
8.4.10.0090.00017.47
8.3.150.0070.01117.16
8.3.140.0100.01016.49
8.3.130.0060.00318.17
8.3.120.0060.00319.10
8.3.110.0130.00720.94
8.3.100.0050.00524.06
8.3.90.0050.00326.77
8.3.80.0060.00317.97
8.3.70.0180.00418.05
8.3.60.0140.00316.63
8.3.50.0130.00521.05
8.3.40.0070.00718.67
8.3.30.0070.00719.04
8.3.20.0040.00420.34
8.3.10.0040.00421.77
8.3.00.0050.00317.25
8.2.260.0080.00016.76
8.2.250.0070.01116.75
8.2.240.0090.00317.19
8.2.230.0050.00322.58
8.2.220.0040.00437.54
8.2.210.0040.00426.77
8.2.200.0040.00816.50
8.2.190.0170.00316.58
8.2.180.0120.00316.60
8.2.170.0140.00718.97
8.2.160.0050.00822.96
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00419.36
8.2.110.0060.00320.39
8.2.100.0000.01317.64
8.2.90.0070.00019.22
8.2.80.0000.00919.30
8.2.70.0040.00417.50
8.2.60.0060.00318.03
8.2.50.0040.00418.07
8.2.40.0050.00218.16
8.2.30.0040.00418.18
8.2.20.0090.00317.73
8.2.10.0000.00718.00
8.2.00.0040.00418.11
8.1.310.0000.00816.50
8.1.300.0110.00816.41
8.1.290.0060.00330.84
8.1.280.0060.01225.92
8.1.270.0040.01420.25
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0030.00623.91
8.1.230.0070.00419.05
8.1.220.0000.00717.74
8.1.210.0030.00518.77
8.1.200.0040.00417.35
8.1.190.0040.00417.30
8.1.180.0040.00419.01
8.1.170.0080.00018.55
8.1.160.0000.00718.83
8.1.150.0050.00318.89
8.1.140.0080.00017.30
8.1.130.0030.00317.79
8.1.120.0000.00717.29
8.1.110.0080.00017.42
8.1.100.0000.00717.36
8.1.90.0030.00617.41
8.1.80.0000.00717.30
8.1.70.0030.00317.40
8.1.60.0070.00417.48
8.1.50.0030.00517.52
8.1.40.0080.00017.36
8.1.30.0000.00817.62
8.1.20.0060.00317.53
8.1.10.0050.00217.41
8.1.00.0000.00717.34
8.0.300.0040.00418.77
8.0.290.0040.00417.04
8.0.280.0040.00418.38
8.0.270.0050.00317.26
8.0.260.0030.00317.27
8.0.250.0030.00316.92
8.0.240.0000.00717.01
8.0.230.0000.00616.96
8.0.220.0070.00016.73
8.0.210.0030.00316.77
8.0.200.0030.00316.89
8.0.190.0040.00416.88
8.0.180.0050.00316.83
8.0.170.0000.00816.71
8.0.160.0030.00516.84
8.0.150.0070.00016.81
8.0.140.0080.00016.79
8.0.130.0050.00013.26
8.0.120.0000.00716.83
8.0.110.0040.00416.76
8.0.100.0000.00716.79
8.0.90.0040.00416.83
8.0.80.0090.00616.90
8.0.70.0000.00716.91
8.0.60.0000.00716.85
8.0.50.0040.00416.80
8.0.30.0110.01316.90
8.0.20.0090.00917.40
8.0.10.0040.00417.02
8.0.00.0090.00816.82
7.4.330.0050.00015.13
7.4.320.0030.00316.35
7.4.300.0060.00016.53
7.4.290.0070.00016.48
7.4.280.0000.00716.41
7.4.270.0030.00316.50
7.4.260.0080.00016.48
7.4.250.0070.00016.50
7.4.240.0040.00416.55
7.4.230.0030.00316.38
7.4.220.0070.01116.40
7.4.210.0090.00916.54
7.4.200.0050.00216.35
7.4.160.0180.00416.30
7.4.150.0090.01217.40
7.4.140.0100.01417.86
7.4.130.0070.01316.55
7.4.120.0150.00616.43
7.4.110.0120.00616.29
7.4.100.0160.00316.25
7.4.90.0090.00916.36
7.4.80.0140.00619.39
7.4.70.0000.01516.52
7.4.60.0100.00716.52
7.4.50.0030.00516.42
7.4.40.0100.00716.48
7.4.30.0140.00716.50
7.4.00.0040.00815.03
7.3.330.0030.00312.88
7.3.320.0000.00512.95
7.3.310.0000.00716.22
7.3.300.0030.00316.16
7.3.290.0030.00316.18
7.3.280.0100.00916.15
7.3.270.0100.00717.40
7.3.260.0140.00316.38
7.3.250.0080.01116.34
7.3.240.0210.00016.42
7.3.230.0130.00616.39
7.3.210.0040.01216.43
7.3.200.0090.01316.41
7.3.190.0110.00816.43
7.3.180.0040.01216.16
7.3.170.0060.01016.27
7.3.160.0160.00016.22
7.3.00.0130.00316.53
7.2.330.0040.01316.60
7.2.320.0100.00716.55
7.2.310.0100.00716.52
7.2.300.0070.01016.54
7.2.290.0030.01416.37
7.2.130.0130.00316.93
7.2.120.0040.01416.95
7.2.110.0060.01016.96
7.2.100.0080.00616.79
7.2.90.0030.00916.84
7.2.80.0160.00016.92
7.2.70.0040.00816.69
7.2.60.0050.00716.76
7.2.50.0100.00316.54
7.2.40.0060.01016.50
7.2.30.0070.00716.91
7.2.20.0060.00616.67
7.2.10.0070.01016.78
7.2.00.0050.00918.19
7.1.250.0090.00615.76
7.1.240.0090.00615.45
7.1.230.0070.01015.88
7.1.220.0100.00715.67
7.1.210.0060.00615.63
7.1.200.0030.01115.65
7.1.190.0070.00715.55
7.1.180.0070.00715.63
7.1.170.0080.00415.57
7.1.160.0040.00715.75
7.1.150.0060.00615.82
7.1.140.0090.00315.66
7.1.130.0030.00915.41
7.1.120.0100.00615.63
7.1.110.0070.00715.51
7.1.100.0110.00516.76
7.1.90.0070.00315.83
7.1.80.0060.00615.84
7.1.70.0050.00616.46
7.1.60.0090.01217.63
7.1.50.0110.00816.41
7.1.40.0110.00415.45
7.1.30.0120.00415.67
7.1.20.0090.00915.75
7.1.10.0080.00815.79
7.1.00.0120.03819.03
7.0.330.0120.00315.29
7.0.320.0160.00015.38
7.0.310.0110.00315.46
7.0.300.0120.00315.51
7.0.290.0080.00315.31
7.0.280.0110.00715.27
7.0.270.0120.00315.14
7.0.260.0030.00715.14
7.0.250.0100.00915.13
7.0.240.0030.01415.46
7.0.230.0060.00615.38
7.0.220.0100.00715.32
7.0.210.0070.01015.34
7.0.200.0100.00316.15
7.0.190.0130.00615.23
7.0.180.0160.00015.36
7.0.170.0070.00715.35
7.0.160.0110.00415.47
7.0.150.0070.01315.55
7.0.140.0050.01015.16
7.0.130.0050.01115.53
7.0.120.0140.00615.23
7.0.110.0100.00615.42
7.0.100.0050.01415.40
7.0.90.0150.03917.67
7.0.80.0110.02317.64
7.0.70.0040.05117.74
7.0.60.0090.04217.59
7.0.50.0070.05017.84
7.0.40.0080.04016.83
7.0.30.0140.02516.74
7.0.20.0070.02516.78
7.0.10.0080.04316.86
7.0.00.0090.04216.75
5.6.380.0000.01214.39
5.6.370.0030.01014.34
5.6.360.0000.01114.43
5.6.350.0070.01014.52
5.6.340.0050.00514.39
5.6.330.0030.00614.14
5.6.320.0060.00914.56
5.6.310.0000.01214.17
5.6.300.0090.00914.52
5.6.290.0070.00714.25
5.6.280.0040.04017.47
5.6.270.0030.00914.05
5.6.260.0090.00613.95
5.6.250.0040.01114.04
5.6.240.0120.04217.49
5.6.230.0100.02017.33
5.6.220.0060.04317.38
5.6.210.0070.02817.54
5.6.200.0050.04517.61
5.6.190.0110.03617.62
5.6.180.0060.02717.56
5.6.170.0030.04417.43
5.6.160.0120.02717.61
5.6.150.0090.03817.60
5.6.140.0050.04117.71
5.6.130.0070.04017.82
5.6.120.0050.04717.63
5.6.110.0070.04417.59
5.6.100.0120.03617.67
5.6.90.0050.02817.59
5.6.80.0090.02017.34
5.6.70.0090.04017.31
5.6.60.0060.02617.20
5.6.50.0080.03617.30
5.6.40.0020.03617.32
5.6.30.0080.03817.50
5.6.20.0020.02517.22
5.6.10.0050.02517.17
5.6.00.0080.04317.21
5.5.380.0040.04715.65
5.5.370.0020.02615.72
5.5.360.0020.05315.61
5.5.350.0100.04115.72
5.5.340.0050.04516.04
5.5.330.0080.03715.83
5.5.320.0080.03316.01
5.5.310.0030.04615.89
5.5.300.0070.04015.86
5.5.290.0090.04116.05
5.5.280.0050.03515.91
5.5.270.0080.04015.89
5.5.260.0080.04215.94
5.5.250.0060.02815.77
5.5.240.0070.03515.58
5.5.230.0080.03315.55
5.5.220.0040.04215.65
5.5.210.0090.03315.54
5.5.200.0100.03515.65
5.5.190.0050.02715.57
5.5.180.0080.02315.44
5.5.170.0030.00310.97
5.5.160.0050.02815.64
5.5.150.0030.04015.55
5.5.140.0050.04515.59
5.5.130.0120.03715.48
5.5.120.0070.03515.55
5.5.110.0030.04215.53
5.5.100.0050.02615.56
5.5.90.0030.03215.51
5.5.80.0070.02015.57
5.5.70.0050.02815.53
5.5.60.0030.03115.43
5.5.50.0030.03615.47
5.5.40.0030.04515.47
5.5.30.0090.03915.52
5.5.20.0080.03515.52
5.5.10.0070.03515.45
5.5.00.0070.02015.46
5.4.450.0030.02215.14
5.4.440.0030.02915.22
5.4.430.0050.04015.18
5.4.420.0100.04115.13
5.4.410.0050.02015.06
5.4.400.0040.02215.06
5.4.390.0070.03814.94
5.4.380.0050.04214.98
5.4.370.0100.03714.92
5.4.360.0110.03514.96
5.4.350.0060.02515.00
5.4.340.0070.03515.06
5.4.330.0100.00311.07
5.4.320.0090.03514.90
5.4.310.0050.04315.05
5.4.300.0050.04214.96
5.4.290.0070.02714.89
5.4.280.0020.04314.92
5.4.270.0080.03815.02
5.4.260.0050.04015.00
5.4.250.0010.04314.96
5.4.240.0050.03714.93
5.4.230.0030.03815.00
5.4.220.0070.02514.95
5.4.210.0080.04114.87
5.4.200.0030.04115.08
5.4.190.0070.03715.05
5.4.180.0030.02315.01
5.4.170.0020.02314.98
5.4.160.0080.02314.97
5.4.150.0070.04015.00
5.4.140.0080.02013.56
5.4.130.0070.01713.64
5.4.120.0030.04313.45
5.4.110.0080.04013.65
5.4.100.0020.04113.60
5.4.90.0070.03513.62
5.4.80.0030.04113.64
5.4.70.0030.03813.71
5.4.60.0040.04013.65
5.4.50.0090.03513.65
5.4.40.0020.02613.58
5.4.30.0020.04113.60
5.4.20.0030.04213.65
5.4.10.0060.03813.60
5.4.00.0070.03513.31
5.3.290.0090.03412.71
5.3.280.0100.03612.72
5.3.270.0020.02612.66
5.3.260.0080.02212.70
5.3.250.0080.03612.68
5.3.240.0090.03712.68
5.3.230.0050.03912.65
5.3.220.0020.04412.65
5.3.210.0030.03312.66
5.3.200.0080.03612.70
5.3.190.0060.03312.64
5.3.180.0050.02712.66
5.3.170.0050.02212.70
5.3.160.0050.04012.65
5.3.150.0080.03812.73
5.3.140.0020.04212.68
5.3.130.0020.02812.70
5.3.120.0090.02212.71
5.3.110.0100.03312.64
5.3.100.0030.04212.46
5.3.90.0110.03112.39
5.3.80.0060.04212.43
5.3.70.0050.02512.45
5.3.60.0030.03912.33
5.3.50.0030.03312.42
5.3.40.0050.03012.41
5.3.30.0000.02912.40
5.3.20.0060.03512.29
5.3.10.0070.03812.20
5.3.00.0000.03212.19
5.2.170.0050.03211.05
5.2.160.0030.03210.95
5.2.150.0050.03111.03
5.2.140.0030.03510.99
5.2.130.0030.02311.00
5.2.120.0030.02110.96
5.2.110.0020.02510.98
5.2.100.0020.03210.89
5.2.90.0030.03010.98
5.2.80.0050.01810.99
5.2.70.0020.03711.00
5.2.60.0050.03110.89
5.2.50.0080.02810.99
5.2.40.0080.02910.87
5.2.30.0020.02610.96
5.2.20.0020.03510.92
5.2.10.0070.03010.88
5.2.00.0050.02410.82
5.1.60.0040.02910.45
5.1.50.0030.02910.46
5.1.40.0070.02710.47
5.1.30.0050.02210.57
5.1.20.0030.03310.63
5.1.10.0070.02710.42
5.1.00.0050.02710.40
5.0.50.0020.0199.84
5.0.40.0020.0279.84
5.0.30.0020.0329.84
5.0.20.0070.0209.84
5.0.10.0040.0129.84
5.0.00.0070.0309.84
4.4.90.0010.0169.84
4.4.80.0030.0109.84
4.4.70.0050.0129.84
4.4.60.0000.0189.84
4.4.50.0000.0189.84
4.4.40.0030.0279.84
4.4.30.0030.0189.84
4.4.20.0010.0219.84
4.4.10.0020.0209.84
4.4.00.0030.0269.84
4.3.110.0020.0179.84
4.3.100.0030.0189.84
4.3.90.0030.0179.84
4.3.80.0000.0219.84
4.3.70.0030.0179.84
4.3.60.0020.0179.84
4.3.50.0030.0139.84
4.3.40.0030.0259.84
4.3.30.0020.0189.84
4.3.20.0030.0129.84
4.3.10.0020.0149.84
4.3.00.0020.0159.84

preferences:
79.29 ms | 403 KiB | 5 Q