3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = [ 'account_id' => 12345, 'created_at' => '2018-10-31 09:30:00.000000', 'customer_id' => 23456, 'originator' => 'MessageBird', 'is_ported' => true, 'body' => base64_encode("Contents \xF0\x9F\x98\x83"), ]; $json = json_encode($data); var_dump($json);

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.0180.00018.30
8.3.50.0070.01018.02
8.3.40.0040.01118.68
8.3.30.0090.00618.59
8.3.20.0050.00319.25
8.3.10.0040.00423.57
8.3.00.0060.00320.66
8.2.180.0060.00918.41
8.2.170.0070.00722.96
8.2.160.0100.00320.38
8.2.150.0040.01124.18
8.2.140.0050.00324.66
8.2.130.0080.00017.78
8.2.120.0080.00026.35
8.2.110.0040.00820.52
8.2.100.0060.00617.54
8.2.90.0000.00818.16
8.2.80.0050.00317.97
8.2.70.0040.00417.88
8.2.60.0000.00718.16
8.2.50.0000.00918.10
8.2.40.0050.00219.41
8.2.30.0000.00719.23
8.2.20.0070.00018.05
8.2.10.0040.00418.11
8.2.00.0040.00417.59
8.1.280.0110.00725.92
8.1.270.0100.00318.82
8.1.260.0060.00326.35
8.1.250.0050.00228.09
8.1.240.0100.00023.92
8.1.230.0070.00421.03
8.1.220.0000.00817.74
8.1.210.0030.00918.77
8.1.200.0000.00817.23
8.1.190.0030.00617.23
8.1.180.0030.00618.10
8.1.170.0040.00418.35
8.1.160.0070.00018.81
8.1.150.0040.00418.77
8.1.140.0070.00022.04
8.1.130.0040.00420.13
8.1.120.0000.00817.37
8.1.110.0040.00417.46
8.1.100.0040.00517.41
8.1.90.0040.00417.42
8.1.80.0000.00817.38
8.1.70.0000.00717.39
8.1.60.0070.00017.41
8.1.50.0000.00817.47
8.1.40.0090.00017.35
8.1.30.0060.00317.45
8.1.20.0030.00617.54
8.1.10.0040.00417.39
8.1.00.0080.00017.34
8.0.300.0070.00019.98
8.0.290.0000.00716.63
8.0.280.0030.00318.38
8.0.270.0030.00317.25
8.0.260.0060.00018.33
8.0.250.0030.00316.72
8.0.240.0060.00016.94
8.0.230.0000.00716.92
8.0.220.0000.00616.70
8.0.210.0050.00216.82
8.0.200.0040.00416.77
8.0.190.0080.00416.72
8.0.180.0030.00516.74
8.0.170.0060.00316.81
8.0.160.0030.00516.93
8.0.150.0070.00016.64
8.0.140.0070.00016.87
8.0.130.0000.00513.28
8.0.120.0040.00416.71
8.0.110.0040.00416.82
8.0.100.0000.00716.86
8.0.90.0030.00516.82
8.0.80.0040.01016.76
8.0.70.0040.00416.69
8.0.60.0050.00216.84
8.0.50.0070.00016.63
8.0.30.0100.00917.01
8.0.20.0090.01117.40
8.0.10.0040.00416.99
8.0.00.0080.01016.68
7.4.330.0000.00415.55
7.4.320.0030.00316.36
7.4.300.0060.00016.34
7.4.290.0030.00316.33
7.4.280.0040.00416.46
7.4.270.0030.00716.48
7.4.260.0000.00716.39
7.4.250.0070.00016.50
7.4.240.0000.00816.46
7.4.230.0030.00316.53
7.4.220.0080.00016.29
7.4.210.0020.01216.58
7.4.200.0000.00716.52
7.4.160.0110.00816.38
7.4.140.0100.00817.86
7.4.130.0100.01416.32
7.4.120.0100.00916.48
7.4.110.0070.01716.24
7.4.100.0080.00816.46
7.4.90.0080.00916.48
7.4.80.0060.01219.39
7.4.70.0120.01216.48
7.4.60.0170.00016.42
7.4.50.0040.01416.45
7.4.40.0100.00716.48
7.4.00.0070.01014.82
7.3.330.0050.00013.04
7.3.320.0060.00013.18
7.3.310.0060.00316.24
7.3.300.0070.00016.16
7.3.290.0000.00716.20
7.3.280.0120.00716.20
7.3.260.0120.00816.31
7.3.240.0130.00716.31
7.3.230.0060.01316.52
7.3.210.0090.00816.19
7.3.200.0100.00616.27
7.3.190.0120.00916.36
7.3.180.0070.00816.44
7.3.170.0070.01316.31
7.3.160.0130.00316.27
7.2.330.0130.00616.71
7.2.320.0120.00916.55
7.2.310.0130.00316.43
7.2.300.0120.00316.25
7.2.290.0090.00616.64
7.2.110.0520.00914.39
7.2.100.0460.01214.35
7.2.90.0320.01214.32
7.2.80.0440.00714.46
7.2.70.0460.00714.75
7.2.60.0400.00314.60
7.2.50.0420.01614.62
7.2.40.0410.00914.80
7.2.30.0570.00614.82
7.2.20.0410.00614.87
7.2.10.0470.00014.88
7.2.00.0370.01314.84
7.1.230.0440.01413.73
7.1.220.0410.00613.42
7.1.210.0310.01213.79
7.1.200.0450.00313.87
7.1.190.0350.01013.73
7.1.180.0440.01013.78
7.1.170.0440.00613.74
7.1.160.0410.00713.80
7.1.150.0420.01513.52
7.1.140.0320.01013.56
7.1.130.0460.00713.72
7.1.120.0370.00913.75
7.1.110.0440.00913.33
7.1.100.0450.01013.43
7.1.90.1270.00613.48
7.1.80.0420.00613.63
7.1.70.0370.01213.70
7.1.60.0650.00331.75
7.1.50.0720.00031.74
7.1.40.0710.01131.89
7.1.30.0900.00731.62
7.1.20.0990.00331.68
7.1.10.0540.01013.78
7.1.00.0460.00713.54
5.6.380.0030.00914.11

preferences:
66.6 ms | 400 KiB | 5 Q