3v4l.org

run code in 500+ PHP versions simultaneously
<?php $data = [ [ 'email' => 'a@bc.com', 'firstname' => 'peter', 'last_name' => 'griffin', 'company' => 'Nantuket Brewing', 'Addresses' => [ [ 'addr1' => '31 Spooner Ln', 'city' => 'Quahog', 'state' => 'RI' ], // possible more addresses here ], ], // possible more items here // [ // 'email' => 'x@y.z', // ... // ] ]; $asString = json_encode($data); echo($asString); //

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.5.70.0120.00516.78
8.5.60.0130.00416.64
8.5.50.0090.00916.46
8.5.30.0070.01017.56
8.5.20.0070.01019.71
8.5.10.0030.00420.17
8.5.00.0140.01019.80
8.4.210.0060.00521.30
8.4.180.0120.01021.37
8.4.170.0110.00923.82
8.4.160.0120.01021.45
8.4.150.0070.00616.82
8.4.140.0140.00917.54
8.4.130.0060.01117.79
8.4.120.0030.00620.61
8.4.110.0120.00822.68
8.4.100.0140.00717.75
8.4.90.0050.00518.75
8.4.80.0100.01019.58
8.4.70.0100.00819.56
8.4.60.0100.00518.68
8.4.50.0110.00917.70
8.4.40.0130.00617.89
8.4.30.0200.00020.44
8.4.20.0040.00419.59
8.4.10.0060.00322.30
8.3.300.0140.00818.79
8.3.290.0110.00922.50
8.3.280.0120.00818.38
8.3.270.0110.00816.28
8.3.260.0090.01016.48
8.3.250.0090.00918.68
8.3.240.0100.01116.60
8.3.230.0070.00316.52
8.3.220.0110.00817.11
8.3.210.0020.00518.31
8.3.200.0050.00416.63
8.3.190.0100.01016.57
8.3.180.0120.00818.33
8.3.170.0090.00917.22
8.3.160.0040.00418.88
8.3.150.0040.00417.05
8.3.140.0000.00817.20
8.3.130.0030.00618.39
8.3.120.0030.01318.88
8.3.110.0050.00320.94
8.3.100.0030.00624.06
8.3.90.0070.00726.77
8.3.80.0090.00018.18
8.3.70.0130.00316.58
8.3.60.0110.00318.18
8.3.50.0170.00320.12
8.3.40.0060.01220.29
8.3.30.0140.00018.54
8.3.20.0070.00024.18
8.3.10.0000.00824.66
8.3.00.0000.00826.16
8.2.300.0090.01420.42
8.2.290.0110.00720.50
8.2.280.0120.00716.80
8.2.270.0150.00316.70
8.2.260.0040.01118.63
8.2.250.0040.00418.23
8.2.240.0060.00318.22
8.2.230.0040.00822.58
8.2.220.0100.00037.54
8.2.210.0050.00326.77
8.2.200.0060.00316.63
8.2.190.0100.01016.63
8.2.180.0070.01125.92
8.2.170.0120.00318.79
8.2.160.0100.00722.96
8.2.150.0080.00025.66
8.2.140.0040.00424.66
8.2.130.0050.00526.16
8.2.120.0050.00326.16
8.2.110.0000.00919.31
8.2.100.0120.00017.84
8.2.90.0040.00417.78
8.2.80.0000.00819.02
8.2.70.0000.00817.50
8.2.60.0060.00317.63
8.2.50.0040.00418.05
8.2.40.0080.00018.22
8.2.30.0050.00217.97
8.2.20.0070.00019.17
8.2.10.0000.00817.98
8.2.00.0040.00419.21
8.1.340.0110.00917.50
8.1.330.0100.00922.01
8.1.320.0080.01016.00
8.1.310.0070.00716.60
8.1.300.0090.00015.85
8.1.290.0030.00630.84
8.1.280.0130.00625.92
8.1.270.0070.00024.66
8.1.260.0030.00526.35
8.1.250.0040.00428.09
8.1.240.0140.00722.06
8.1.230.0070.00421.04
8.1.220.0000.00817.79
8.1.210.0080.00018.77
8.1.200.0030.00617.23
8.1.190.0070.00317.22
8.1.180.0050.00318.10
8.1.170.0080.00017.62
8.1.160.0040.00418.91
8.1.150.0000.00718.57
8.1.140.0000.00817.42
8.1.130.0080.00018.92
8.1.120.0040.00417.39
8.1.110.0000.00917.39
8.1.100.0100.00617.34
8.1.90.0040.01217.24
8.1.80.0160.00317.40
8.1.70.0100.00617.36
8.1.60.0190.00017.54
8.1.50.0140.00617.50
8.1.40.0160.00317.37
8.1.30.0150.00417.52
8.1.20.0130.00917.63
8.1.10.0120.00817.52
8.1.00.0150.00417.41
8.0.300.0040.00420.04
8.0.290.0000.00716.89
8.0.280.0070.00018.31
8.0.270.0000.00717.24
8.0.260.0030.00318.33
8.0.250.0030.00316.98
8.0.240.0120.00516.93
8.0.230.0050.01116.82
8.0.220.0080.00816.82
8.0.210.0140.00416.78
8.0.200.0110.00516.82
8.0.190.0160.00016.80
8.0.180.0060.00916.65
8.0.170.0140.00216.80
8.0.160.0170.00016.78
8.0.150.0060.00916.60
8.0.140.0130.00316.70
8.0.130.0160.00016.71
8.0.120.0050.01016.74
8.0.110.0110.00416.68
8.0.100.0160.00016.71
8.0.90.0090.00716.80
8.0.80.0100.00516.86
8.0.70.0160.00016.75
8.0.60.0130.00316.69
8.0.50.0050.01016.64
8.0.30.0100.00516.76
8.0.20.0100.00716.82
8.0.10.0140.00216.85
7.4.330.0000.00415.55
7.4.320.0070.00016.52
7.4.300.0090.00916.41
7.4.290.0150.00316.44
7.4.280.0120.00416.43
7.4.270.0150.00316.52
7.4.260.0100.00616.50
7.4.250.0160.00016.40
7.4.240.0090.00516.52
7.4.230.0090.00616.50
7.4.220.0170.00016.34
7.4.210.0110.00416.34
7.4.200.0080.00516.32
7.4.190.0150.00016.50
7.4.180.0120.00016.59
7.4.160.0120.00316.61
7.4.150.0130.00016.53
7.4.140.0110.00316.39
7.4.130.0070.00616.29
7.4.120.0060.00316.26
7.4.110.0030.00816.17
7.4.100.0050.00516.41
7.4.90.0000.01016.30
7.4.80.0070.00716.30
7.4.70.0130.00316.35
7.4.60.0090.00616.39
7.4.50.0070.00716.12
7.4.40.0150.00416.29
7.4.30.0030.01416.29
7.4.20.0100.00516.34
7.4.10.0080.00816.28
7.4.00.0100.00516.27

preferences:
55.4 ms | 1277 KiB | 5 Q