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.0070.01418.33
8.3.50.0070.01418.03
8.3.40.0170.00318.71
8.3.30.0070.00718.64
8.3.20.0110.00319.21
8.3.10.0040.00423.48
8.3.00.0040.00420.62
8.2.180.0190.00018.41
8.2.170.0070.00722.96
8.2.160.0100.00320.35
8.2.150.0160.00024.18
8.2.140.0030.00524.66
8.2.130.0040.00417.91
8.2.120.0070.00726.35
8.2.110.0090.00021.00
8.2.100.0030.00917.84
8.2.90.0060.00317.63
8.2.80.0060.00317.97
8.2.70.0040.00417.91
8.2.60.0040.00418.03
8.2.50.0050.00318.10
8.2.40.0040.00419.25
8.2.30.0070.00019.20
8.2.20.0040.00417.99
8.2.10.0030.00517.93
8.2.00.0000.00817.61
8.1.280.0140.00025.92
8.1.270.0130.00718.83
8.1.260.0070.00326.35
8.1.250.0070.00028.09
8.1.240.0090.00019.15
8.1.230.0090.00320.41
8.1.220.0000.00817.75
8.1.210.0050.00318.77
8.1.200.0000.00917.13
8.1.190.0030.00617.11
8.1.180.0030.00518.10
8.1.170.0000.00718.55
8.1.160.0040.00418.78
8.1.150.0000.00818.86
8.1.140.0030.00322.19
8.1.130.0060.00320.18
8.1.120.0050.00217.29
8.1.110.0040.00417.36
8.1.100.0060.00317.37
8.1.90.0000.00717.34
8.1.80.0000.00817.39
8.1.70.0030.00317.39
8.1.60.0000.00817.50
8.1.50.0080.00017.47
8.1.40.0000.00917.34
8.1.30.0070.00317.63
8.1.20.0050.00217.46
8.1.10.0040.00417.48
8.1.00.0040.00417.40
8.0.300.0090.00318.77
8.0.290.0000.00716.75
8.0.280.0040.00418.29
8.0.270.0070.00017.23
8.0.260.0050.00318.30
8.0.250.0030.00316.91
8.0.240.0000.00816.82
8.0.230.0000.00616.75
8.0.220.0000.00716.74
8.0.210.0030.00516.86
8.0.200.0030.00316.88
8.0.190.0090.00316.89
8.0.180.0040.00416.74
8.0.170.0030.00516.77
8.0.160.0000.00716.86
8.0.150.0060.00316.77
8.0.140.0040.00416.80
8.0.130.0030.00313.24
8.0.120.0020.00516.75
8.0.110.0000.00716.71
8.0.100.0040.00416.78
8.0.90.0040.00416.88
8.0.80.0040.01316.79
8.0.70.0070.00016.78
8.0.60.0040.00416.86
8.0.50.0030.00516.84
8.0.30.0140.00916.95
8.0.20.0070.01217.40
8.0.10.0050.00316.95
8.0.00.0130.00416.48
7.4.330.0020.00215.55
7.4.320.0000.00616.57
7.4.300.0030.00316.57
7.4.290.0030.00316.44
7.4.280.0000.00716.48
7.4.270.0060.00316.43
7.4.260.0070.00016.44
7.4.250.0040.00416.50
7.4.240.0000.00716.46
7.4.230.0050.00216.33
7.4.220.0040.00416.44
7.4.210.0060.00916.55
7.4.200.0030.00316.63
7.4.160.0100.00616.49
7.4.140.0090.00917.86
7.4.130.0140.00716.40
7.4.120.0060.01116.39
7.4.110.0200.00316.37
7.4.100.0130.00316.32
7.4.90.0130.00316.48
7.4.80.0090.00919.39
7.4.70.0100.00616.37
7.4.60.0130.00316.40
7.4.50.0060.00916.26
7.4.40.0060.01616.17
7.4.10.0040.01816.42
7.4.00.0060.01215.10
7.3.330.0020.00212.95
7.3.320.0000.00513.05
7.3.310.0080.00016.26
7.3.300.0040.00216.18
7.3.290.0050.00316.13
7.3.280.0090.00716.13
7.3.260.0100.00816.27
7.3.240.0100.00916.22
7.3.230.0130.00616.32
7.3.210.0130.00316.18
7.3.200.0060.01016.22
7.3.190.0060.01316.47
7.3.180.0080.00816.19
7.3.170.0130.00916.11
7.3.160.0120.00916.24
7.3.130.0100.01016.13
7.3.120.0050.01115.46
7.3.110.0070.00915.52
7.3.100.0060.00715.43
7.3.90.0060.00615.28
7.3.80.0110.00515.40
7.3.70.0060.00715.35
7.3.60.0080.00815.33
7.3.50.0100.00215.30
7.3.40.0080.00715.43
7.3.30.0060.00515.39
7.3.20.0020.01017.23
7.3.10.0040.00917.17
7.3.00.0090.00517.27
7.2.330.0060.01016.59
7.2.320.0060.01216.53
7.2.310.0180.00316.44
7.2.300.0160.00616.36
7.2.290.0100.00616.62
7.2.260.0070.01316.48
7.2.250.0130.00615.51
7.2.240.0090.00815.58
7.2.230.0030.01315.64
7.2.220.0040.00815.77
7.2.210.0030.01015.57
7.2.200.0100.00315.73
7.2.190.0050.01015.63
7.2.180.0050.00715.37
7.2.170.0090.00615.66
7.2.160.0030.01316.27
7.2.150.0000.01718.17
7.2.140.0040.01118.33
7.2.130.0060.00618.20
7.2.120.0040.00718.21
7.2.110.0150.00816.18
7.2.100.0150.00816.31
7.2.90.0120.01016.32
7.2.80.0150.00516.34
7.2.70.0150.00516.42
7.2.60.0130.00516.49
7.2.50.0130.00816.63
7.2.40.0130.00416.53
7.2.30.0140.01316.54
7.2.20.0170.00616.34
7.2.10.0140.00516.57
7.2.00.0080.01116.52
7.1.330.0100.00516.45
7.1.320.0050.00616.39
7.1.310.0050.00716.41
7.1.300.0040.00816.62
7.1.290.0060.00616.51
7.1.280.0040.00916.53
7.1.270.0050.00916.45
7.1.260.0040.01116.43
7.1.250.0070.01017.14
7.1.240.0090.00617.20
7.1.230.0200.00615.45
7.1.220.0160.00315.41
7.1.210.0130.01115.45
7.1.200.0140.00515.55
7.1.190.0100.01115.45
7.1.180.0170.00615.27
7.1.170.0150.00315.44
7.1.160.0120.00715.39
7.1.150.0130.00815.39
7.1.140.0170.00515.53
7.1.130.0170.00515.44
7.1.120.0120.00815.32
7.1.110.0120.01215.38
7.1.100.0080.01215.43
7.1.90.0130.00615.36
7.1.80.0140.00515.29
7.1.70.0110.01315.29
7.1.60.0310.00624.27
7.1.50.0190.01124.29
7.1.40.0200.00624.38
7.1.30.0230.01024.38
7.1.20.0160.01324.60
7.1.10.0100.00715.45
7.1.00.0650.00615.33
7.0.330.0060.00916.96
7.0.320.0040.00816.91
7.0.310.0080.00816.75
7.0.300.0070.00716.67
7.0.290.0000.00916.58
7.0.280.0070.01316.83
7.0.270.0060.00917.04
7.0.260.0110.00717.03
7.0.250.0100.00717.08
7.0.240.0040.01216.90
7.0.230.0030.00616.86
7.0.220.0000.01416.93
7.0.210.0060.00616.85
7.0.200.0040.01116.98
7.0.190.0060.00616.91
7.0.180.0030.00916.83
7.0.170.0120.00316.88
7.0.160.0060.00616.99
7.0.150.0060.00716.84
7.0.140.0100.00717.14
7.0.130.0060.00916.70
7.0.120.0090.00616.97
7.0.110.0000.01116.97
7.0.100.0090.00416.82
7.0.90.0090.00616.99
7.0.80.0030.01316.97
7.0.70.0060.00916.80
7.0.60.0110.00416.90
7.0.50.0040.00716.87
7.0.40.0000.01114.88
7.0.30.0000.01114.73
7.0.20.0110.00714.82
7.0.10.0030.00714.85
7.0.00.0060.00914.96
5.6.400.0040.00715.73
5.6.390.0060.00915.77
5.6.380.0050.00914.85
5.6.370.0060.00615.45
5.6.360.0060.00815.42
5.6.350.0120.00615.62
5.6.340.0150.00415.88
5.6.330.0060.00615.68
5.6.320.0070.01015.60
5.6.310.0030.01415.78
5.6.300.0120.00315.74
5.6.290.0070.00715.56
5.6.280.0090.00615.94
5.6.270.0030.01515.71
5.6.260.0130.00015.86
5.6.250.0000.01615.52
5.6.240.0000.01415.76
5.6.230.0060.00315.72
5.6.220.0000.01815.64
5.6.210.0070.00715.77
5.6.200.0030.01015.97
5.6.190.0040.00815.76
5.6.180.0030.00915.56
5.6.170.0100.00015.57
5.6.160.0090.00915.74
5.6.150.0130.00315.77
5.6.140.0100.01015.68
5.6.130.0030.01215.47
5.6.120.0090.00615.75
5.6.110.0000.01715.84
5.6.100.0040.01115.78
5.6.90.0000.01315.76
5.6.80.0000.01415.68
5.6.70.0070.00715.57
5.6.60.0060.01015.49
5.6.50.0070.00715.47
5.6.40.0140.00015.47
5.6.30.0060.00915.59
5.6.20.0090.00915.50
5.6.10.0130.00315.48
5.6.00.0090.00915.66

preferences:
70.19 ms | 401 KiB | 5 Q