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' => '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.0140.00718.53
8.3.50.0070.01418.07
8.3.40.0090.00618.63
8.3.30.0060.01219.02
8.3.20.0110.00319.16
8.3.10.0090.00023.61
8.3.00.0100.00320.63
8.2.180.0110.00718.11
8.2.170.0070.00722.96
8.2.160.0040.01120.57
8.2.150.0070.00024.18
8.2.140.0050.00324.66
8.2.130.0040.00417.84
8.2.120.0040.00426.35
8.2.110.0120.00320.47
8.2.100.0040.00817.91
8.2.90.0000.00817.63
8.2.80.0030.00517.97
8.2.70.0030.00517.93
8.2.60.0040.00418.34
8.2.50.0040.00419.48
8.2.40.0040.00419.30
8.2.30.0020.00519.21
8.2.20.0070.00018.13
8.2.10.0050.00218.05
8.2.00.0040.00417.71
8.1.280.0070.01025.92
8.1.270.0090.00918.82
8.1.260.0030.00726.35
8.1.250.0000.00828.09
8.1.240.0090.00020.72
8.1.230.0130.00018.98
8.1.220.0050.00317.79
8.1.210.0030.00618.77
8.1.200.0000.00817.35
8.1.190.0060.00317.23
8.1.180.0080.00018.10
8.1.170.0040.00418.64
8.1.160.0070.00018.73
8.1.150.0050.00218.82
8.1.140.0030.00322.14
8.1.130.0000.00720.27
8.1.120.0040.00417.38
8.1.110.0050.00217.40
8.1.100.0040.00417.38
8.1.90.0000.00717.30
8.1.80.0050.00317.25
8.1.70.0030.00317.30
8.1.60.0080.00017.53
8.1.50.0040.00417.36
8.1.40.0000.00917.36
8.1.30.0060.00317.58
8.1.20.0050.00217.61
8.1.10.0040.00417.52
8.1.00.0040.00417.47
8.0.300.0030.00618.77
8.0.290.0070.00016.75
8.0.280.0000.00718.48
8.0.270.0070.00017.30
8.0.260.0000.00618.35
8.0.250.0040.00416.95
8.0.240.0030.00317.02
8.0.230.0070.00016.92
8.0.220.0000.00716.84
8.0.210.0000.00716.96
8.0.200.0000.00617.07
8.0.190.0070.00417.00
8.0.180.0000.00816.94
8.0.170.0030.00616.98
8.0.160.0000.00716.97
8.0.150.0000.00716.83
8.0.140.0070.00016.92
8.0.130.0000.00613.31
8.0.120.0070.00016.93
8.0.110.0000.00716.98
8.0.100.0000.00716.90
8.0.90.0020.00516.75
8.0.80.0070.00916.94
8.0.70.0000.00717.02
8.0.60.0030.00516.99
8.0.50.0000.00816.81
8.0.30.0120.01117.12
8.0.20.0110.00817.40
8.0.10.0040.00417.02
8.0.00.0120.00916.87
7.4.330.0000.00515.55
7.4.320.0000.00616.45
7.4.300.0000.00716.33
7.4.290.0070.00016.54
7.4.280.0030.00316.52
7.4.270.0050.00516.47
7.4.260.0040.00416.32
7.4.250.0050.00316.37
7.4.240.0000.00716.44
7.4.230.0000.00716.25
7.4.220.0030.00516.57
7.4.210.0080.01116.59
7.4.200.0000.00716.45
7.4.160.0070.00916.41
7.4.140.0110.00817.86
7.4.130.0110.00716.54
7.4.120.0090.01016.49
7.4.110.0180.00716.35
7.4.100.0100.01016.59
7.4.90.0100.00716.58
7.4.80.0030.01319.39
7.4.70.0100.00716.63
7.4.60.0080.00816.52
7.4.50.0030.01216.28
7.4.40.0120.00616.61
7.4.00.0090.00615.07
7.3.330.0000.00512.96
7.3.320.0030.00313.15
7.3.310.0030.00516.22
7.3.300.0070.00016.23
7.3.290.0000.00716.12
7.3.280.0090.00816.25
7.3.260.0090.00916.41
7.3.240.0100.01016.44
7.3.230.0070.01016.43
7.3.210.0040.01116.44
7.3.200.0030.01316.39
7.3.190.0070.01416.23
7.3.180.0070.01016.40
7.3.170.0130.01016.29
7.3.160.0100.00616.57
7.2.330.0070.01116.61
7.2.320.0080.01116.50
7.2.310.0060.01116.72
7.2.300.0090.01216.36
7.2.290.0040.01216.69
7.2.110.0260.00714.66
7.2.100.0340.00314.59
7.2.90.0330.00714.29
7.2.80.0310.00714.54
7.2.70.0170.01314.71
7.2.60.0130.01414.89
7.2.50.0280.00314.88
7.2.40.0260.01014.95
7.2.30.0110.01114.75
7.2.20.0190.00614.82
7.2.10.0230.01114.59
7.2.00.0230.00314.66
7.1.230.0190.00313.71
7.1.220.0270.00013.48
7.1.210.0190.01313.84
7.1.200.0230.00613.87
7.1.190.0230.00613.62
7.1.180.0180.00913.62
7.1.170.0130.00913.81
7.1.160.0110.01413.94
7.1.150.0230.00613.45
7.1.140.0260.00313.76
7.1.130.0220.00913.46
7.1.120.1080.00713.48
7.1.110.0140.00713.68
7.1.100.0170.00313.65
7.1.90.0210.00313.72
7.1.80.0260.00613.42
7.1.70.0250.00313.65
7.1.60.0290.01031.81
7.1.50.0320.00931.70
7.1.40.0290.01331.70
7.1.30.0410.01331.64
7.1.20.0370.00731.64
7.1.10.0210.00613.84
7.1.00.0160.00713.54
5.6.380.0030.01414.18

preferences:
69.74 ms | 401 KiB | 5 Q