3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a=['url'=>'foo&bar']; echo json_encode ( $a, 0 | ~ JSON_HEX_AMP ); echo json_encode ( $a ); echo json_encode ( $a, JSON_BIGINT_AS_STRING );

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.0190.00018.43
8.3.50.0100.01016.09
8.3.40.0070.01118.57
8.3.30.0110.00418.45
8.3.20.0040.00421.78
8.3.10.0080.00021.80
8.3.00.0040.00419.56
8.2.180.0070.01418.44
8.2.170.0160.00622.96
8.2.160.0070.00720.98
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0090.00619.95
8.2.110.0000.00921.13
8.2.100.0120.00017.84
8.2.90.0080.00018.88
8.2.80.0000.00817.97
8.2.70.0040.00417.38
8.2.60.0080.00017.93
8.2.50.0000.00818.10
8.2.40.0060.00320.61
8.2.30.0000.00719.11
8.2.20.0060.00317.98
8.2.10.0000.00817.90
8.2.00.0000.00718.02
8.1.280.0040.01125.92
8.1.270.0060.00323.80
8.1.260.0030.00626.35
8.1.250.0040.00428.09
8.1.240.0030.00619.09
8.1.230.0050.00517.77
8.1.220.0060.00317.76
8.1.210.0040.00418.77
8.1.200.0030.00617.23
8.1.190.0060.00317.10
8.1.180.0060.00318.10
8.1.170.0050.00318.64
8.1.160.0040.00418.73
8.1.150.0070.00020.07
8.1.140.0000.00719.42
8.1.130.0040.00419.16
8.1.120.0030.00717.30
8.1.110.0040.00417.34
8.1.100.0030.00317.38
8.1.90.0040.00417.43
8.1.80.0000.00917.40
8.1.70.0000.00717.43
8.1.60.0020.00517.53
8.1.50.0040.00817.45
8.1.40.0060.00317.47
8.1.30.0040.00417.41
8.1.20.0060.00317.46
8.1.10.0070.00417.39
8.1.00.0000.00717.47
8.0.300.0040.00418.77
8.0.290.0080.00016.75
8.0.280.0000.00818.47
8.0.270.0000.00717.23
8.0.260.0070.00016.72
8.0.250.0000.00616.85
8.0.240.0030.00616.75
8.0.230.0030.00316.84
8.0.220.0050.00216.86
8.0.210.0050.00216.72
8.0.200.0000.00716.86
8.0.190.0030.00716.78
8.0.180.0000.00716.89
8.0.170.0040.00416.80
8.0.160.0040.00316.69
8.0.150.0030.00316.71
8.0.140.0050.00316.71
8.0.130.0000.00513.30
8.0.120.0040.00416.84
8.0.110.0030.00316.70
8.0.100.0050.00316.83
8.0.90.0050.00316.93
8.0.80.0060.01516.80
8.0.70.0000.00716.68
8.0.60.0040.00416.59
8.0.50.0070.00016.69
8.0.30.0110.00917.03
8.0.20.0110.00817.40
8.0.10.0000.00716.80
8.0.00.0090.00916.82
7.4.330.0050.00015.55
7.4.320.0000.00616.57
7.4.300.0040.00416.41
7.4.290.0060.00316.44
7.4.280.0050.00316.45
7.4.270.0050.00316.43
7.4.260.0020.00516.53
7.4.250.0080.00016.48
7.4.240.0000.00716.53
7.4.230.0000.00716.35
7.4.220.0100.00716.54
7.4.210.0110.00416.39
7.4.200.0030.00316.52
7.4.160.0110.00716.46
7.4.150.0130.00617.40
7.4.140.0120.00617.86
7.4.130.0140.00716.40
7.4.120.0140.01116.36
7.4.110.0060.01016.40
7.4.100.0130.01016.42
7.4.90.0150.00916.30
7.4.80.0150.00919.39
7.4.70.0000.01516.34
7.4.60.0110.00616.56
7.4.50.0000.01516.38
7.4.40.0060.01216.51
7.4.30.0070.01116.57
7.4.00.0040.00715.05
7.3.330.0030.00312.86
7.3.320.0000.00512.96
7.3.310.0000.00716.21
7.3.300.0000.00616.03
7.3.290.0000.00716.16
7.3.280.0050.01016.09
7.3.270.0100.00717.40
7.3.260.0130.00416.30
7.3.250.0120.00516.16
7.3.240.0090.00816.43
7.3.230.0100.00716.22
7.3.210.0030.01316.40
7.3.200.0140.00316.25
7.3.190.0150.00016.41
7.3.180.0060.01116.18
7.3.170.0060.01616.33
7.3.160.0090.00616.29
7.3.10.0030.01016.46
7.3.00.0000.00816.45
7.2.330.0100.00616.61
7.2.320.0090.00916.35
7.2.310.0030.01316.50
7.2.300.0060.00916.57
7.2.290.0100.00716.36
7.2.130.0040.00716.66
7.2.120.0000.01416.72
7.2.110.0040.00816.77
7.2.100.0000.00916.91
7.2.90.0000.01416.77
7.2.80.0000.01316.65
7.2.70.0030.01416.43
7.2.60.0030.01116.75
7.2.50.0080.00516.71
7.2.40.0070.00716.85
7.2.30.0040.01116.88
7.2.20.0000.01116.84
7.2.10.0030.00616.73
7.2.00.0030.01016.84
7.1.250.0040.01115.93
7.1.200.0000.01515.73
7.1.70.0000.00716.96
7.1.60.0600.01032.91
7.1.50.0730.01032.84
7.1.40.0770.01032.56
7.1.30.1000.00732.59
7.1.20.0970.01332.67
7.1.10.0870.01014.83
7.1.00.0630.01314.95
7.0.200.0570.00714.73
7.0.190.0600.00714.79
7.0.180.0470.00714.36
7.0.170.0570.00714.25
7.0.160.1070.01314.24
7.0.150.0530.01014.40
7.0.140.1230.01014.45
7.0.130.0670.01314.61
7.0.120.0670.01014.51
7.0.110.0970.00714.31
7.0.100.0600.01714.41
7.0.90.1130.01014.31
7.0.80.0830.01014.63
7.0.70.0700.01014.46
7.0.60.0730.00714.27
7.0.50.0670.01014.70
7.0.40.0770.01314.37
7.0.30.0800.01014.81
7.0.20.0770.00714.43
7.0.10.0830.01014.46
7.0.00.0930.01014.45

preferences:
56.99 ms | 400 KiB | 5 Q