3v4l.org

run code in 300+ PHP versions simultaneously
<?php $attachment = '[{ "contentType": "application/json", "content": { "type": "mytype", "body": [{ "type": "TextInfo", "text": "TEST TEXT", "wrap": true }] } }]'; // Add attachment string (JSON data) in an array $mydata = array( 'space' => "abc", 'markdown' => "**welcome**", 'attachment' => json_decode($attachment) ); // Turn array into one big JSON string $send_json = json_encode($mydata, JSON_PRETTY_PRINT); echo $send_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.4.130.0100.01017.61
8.4.120.0090.00222.24
8.4.110.0100.01022.50
8.4.100.0140.00617.81
8.4.90.0140.00717.61
8.4.80.0110.00817.80
8.4.70.0100.00717.55
8.4.60.0130.00717.61
8.4.50.0130.00718.72
8.4.40.0060.01317.59
8.4.30.0060.00618.74
8.4.20.0090.00919.43
8.4.10.0090.00622.41
8.3.260.0100.00816.78
8.3.250.0150.00419.10
8.3.240.0100.00916.54
8.3.230.0140.00716.62
8.3.220.0100.01018.38
8.3.210.0060.00216.75
8.3.200.0170.00316.65
8.3.190.0110.00717.12
8.3.180.0030.00618.82
8.3.170.0150.00416.27
8.3.160.0040.01117.07
8.3.150.0090.00416.98
8.3.140.0090.00920.41
8.3.130.0040.00416.78
8.3.120.0100.01018.74
8.3.110.0080.00020.94
8.3.100.0050.00324.06
8.3.90.0080.00026.77
8.3.80.0030.00716.63
8.3.70.0130.00316.58
8.3.60.0080.00818.15
8.3.50.0120.00523.74
8.3.40.0030.01318.84
8.3.30.0150.00018.63
8.3.20.0040.00424.18
8.3.10.0080.00024.66
8.3.00.0090.00026.16
8.2.290.0130.00520.54
8.2.280.0100.01018.56
8.2.270.0040.01517.27
8.2.260.0030.01516.52
8.2.250.0000.00918.46
8.2.240.0060.00918.82
8.2.230.0040.00422.58
8.2.220.0040.00437.54
8.2.210.0060.01326.77
8.2.200.0030.00616.50
8.2.190.0140.00316.75
8.2.180.0060.00925.92
8.2.170.0140.00718.89
8.2.160.0110.00422.96
8.2.150.0080.00025.66
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0070.00020.88
8.2.110.0060.00320.40
8.2.100.0080.00417.84
8.2.90.0060.00317.75
8.2.80.0040.00417.97
8.2.70.0040.00417.38
8.2.60.0040.00417.61
8.2.50.0080.00018.05
8.2.40.0080.00019.88
8.2.30.0000.00718.09
8.2.20.0040.00418.18
8.2.10.0000.00819.21
8.2.00.0000.00719.34
8.1.330.0090.00918.29
8.1.320.0100.01018.15
8.1.310.0120.00615.96
8.1.300.0030.01316.04
8.1.290.0030.00618.88
8.1.280.0140.00325.92
8.1.270.0030.00523.99
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0100.00623.97
8.1.230.0070.00420.91
8.1.220.0040.00417.74
8.1.210.0030.00618.77
8.1.200.0000.00917.23
8.1.190.0030.00717.22
8.1.180.0060.00318.10
8.1.170.0030.00618.29
8.1.160.0000.00718.72
8.1.150.0040.00418.80
8.1.140.0000.00718.80
8.1.130.0030.00320.02
8.1.120.0080.00017.42
8.1.110.0080.00017.32
8.1.100.0030.00617.39
8.1.90.0080.00017.35
8.1.80.0070.00017.27
8.1.70.0040.00417.42
8.1.60.0050.00317.40
8.1.50.0040.00417.50
8.1.40.0080.00017.45
8.1.30.0050.00317.59
8.1.20.0000.00717.50
8.1.10.0040.00417.42
8.1.00.0050.00317.40
8.0.300.0070.00019.73
8.0.290.0060.00616.75
8.0.280.0000.00718.49
8.0.270.0050.00317.99
8.0.260.0030.00320.17
8.0.250.0000.00616.91
8.0.240.0030.00516.84
8.0.230.0020.00516.93
8.0.220.0040.00416.80
8.0.210.0060.00316.78
8.0.200.0040.00416.88
8.0.190.0030.00316.91
8.0.180.0040.00416.75
8.0.170.0030.00616.81
8.0.160.0000.00716.78
8.0.150.0000.00816.75
8.0.140.0040.00316.79
8.0.130.0000.00513.34
8.0.120.0000.01016.81
8.0.110.0000.00716.71
8.0.100.0040.00416.68
8.0.90.0040.00416.61
8.0.80.0050.01416.72
8.0.70.0000.00716.69
8.0.60.0000.00716.68
8.0.50.0050.00316.70
8.0.30.0090.00616.74
8.0.20.0110.01116.93
8.0.10.0080.00016.92
8.0.00.0130.01016.61
7.4.330.0030.00315.55
7.4.320.0000.00716.48
7.4.300.0000.00616.43
7.4.290.0030.00316.50
7.4.280.0030.00516.51
7.4.270.0050.00316.34
7.4.260.0060.00013.16
7.4.250.0040.00416.43
7.4.240.0030.00316.51
7.4.230.0030.00316.59
7.4.220.0020.00516.37
7.4.210.0060.00916.45
7.4.200.0000.00716.42
7.4.130.0060.01216.27
7.4.120.0160.00016.43
7.4.110.0120.00616.28
7.4.100.0140.00316.58
7.4.90.0070.01016.57
7.4.80.0120.00616.18
7.4.70.0120.00616.32
7.4.60.0030.01316.41
7.4.50.0110.00716.26
7.4.40.0060.01316.22
7.4.30.0160.00616.50
7.4.20.0130.00316.55
7.4.10.0040.01216.35
7.4.00.0070.01016.44
7.3.330.0030.00516.10
7.3.320.0000.00513.18
7.3.310.0030.00516.39
7.3.300.0000.00716.11
7.3.290.0050.01116.30
7.3.280.0060.01116.19
7.3.260.0190.00316.10
7.3.230.0000.01716.27
7.3.210.0000.01616.32
7.3.200.0100.00716.20
7.3.190.0110.00716.24
7.3.180.0120.00616.19
7.3.170.0070.01016.36
7.3.160.0100.01016.22
7.3.150.0130.00316.18
7.3.140.0100.00616.26
7.3.130.0100.00716.35
7.3.120.0060.01216.40
7.3.110.0140.00316.36
7.3.100.0070.01016.21
7.3.90.0130.00616.21
7.3.80.0130.00316.45
7.3.70.0130.00316.39
7.3.60.0030.01916.13
7.3.50.0090.00616.24
7.3.40.0150.00316.38
7.3.30.0130.00616.39
7.3.20.0100.00716.32
7.3.10.0160.00616.30
7.3.00.0120.00616.15
7.2.330.0120.00616.32
7.2.320.0070.01116.27
7.2.310.0030.01416.34
7.2.300.0070.01016.25
7.2.290.0140.00316.32
7.2.280.0130.00316.68
7.2.270.0060.01016.58
7.2.260.0060.01016.59
7.2.250.0150.00416.42
7.2.240.0130.00316.61
7.2.230.0140.00316.65
7.2.220.0070.01016.61
7.2.210.0100.00616.51
7.2.200.0000.01716.67
7.2.190.0170.00316.60
7.2.180.0090.00916.37
7.2.170.0090.00916.63
7.2.160.0140.00316.48
7.2.150.0150.00316.62
7.2.140.0190.00016.57
7.2.130.0000.02116.50
7.2.120.0140.00716.45
7.2.110.0100.01016.46
7.2.100.0030.01916.62
7.2.90.0060.01316.51
7.2.80.0480.00616.49
7.2.70.0090.00916.46
7.2.60.0150.00316.43
7.2.50.0030.01316.64
7.2.40.0110.00616.53
7.2.30.0140.00316.45
7.2.20.0090.00916.42
7.2.10.0070.01016.52
7.2.00.0070.01016.50

preferences:
119.09 ms | 403 KiB | 5 Q