3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url = 'https://open-api.tiktok.com/video/list/'; $data = '{ "access_token": "'.$tik_token.'", "open_id": "'.$tik_open_tk.'", "cursor": 0, "max_count": 1, "fields": ["embed_html", "embed_link", "share_count"] }'; $ch = curl_init($url); curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST"); curl_setopt($ch, CURLOPT_POSTFIELDS, $data); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); //curl_setopt($ch, CURLOPT_HTTPHEADER, $additional_headers); $server_output = curl_exec ($ch); echo $server_output;

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.0100.00618.31
8.3.50.0120.00320.32
8.3.40.0190.00318.88
8.3.30.0040.01119.39
8.3.20.0100.00725.17
8.3.10.0100.00925.33
8.3.00.0090.00625.83
8.2.180.0290.01025.92
8.2.170.0120.00318.91
8.2.160.0100.01022.96
8.2.150.0080.00825.66
8.2.140.0090.00725.33
8.2.130.0160.00225.83
8.2.120.0060.00823.63
8.2.110.0120.00323.91
8.2.100.0060.01023.10
8.2.90.0130.00721.96
8.2.80.0090.00922.13
8.2.70.0120.00730.65
8.2.60.0120.00427.67
8.2.50.0110.00929.17
8.2.40.0140.00526.81
8.2.30.0120.00629.17
8.2.20.0130.00529.77
8.2.10.0130.00529.21
8.2.00.0110.00627.97
8.1.280.0090.00625.92
8.1.270.0100.00725.11
8.1.260.0090.00625.89
8.1.250.0100.00426.47
8.1.240.0090.00625.03
8.1.230.0100.00524.66
8.1.220.0150.00421.87
8.1.210.0110.00722.12
8.1.200.0110.00630.50
8.1.190.0110.00630.57
8.1.180.0120.00629.09
8.1.170.0130.00529.10
8.1.160.0120.00529.49
8.1.150.0130.00529.19
8.1.140.0100.00526.79
8.1.130.0090.00727.81
8.1.120.0090.00827.57
8.1.110.0110.00424.80
8.1.100.0110.00624.20
8.1.90.0120.00522.84
8.1.80.0110.00622.84
8.1.70.0110.00522.82
8.1.60.0110.00622.94
8.1.50.0120.00522.53
8.1.40.0130.00622.54
8.1.30.0120.00722.63
8.1.20.0130.00522.64
8.1.10.0120.00622.61
8.1.00.0140.00422.31
8.0.300.0100.00621.97
8.0.290.0130.00730.31
8.0.280.0150.00629.00
8.0.270.0110.00528.81
8.0.260.0140.00527.50
8.0.250.0100.00727.32
8.0.240.0120.00624.48
8.0.230.0110.00423.31
8.0.220.0120.00422.42
8.0.210.0140.00422.44
8.0.200.0110.00622.48
8.0.190.0130.00622.51
8.0.180.0120.00522.12
8.0.170.0120.00522.12
8.0.160.0110.00522.08
8.0.150.0130.00422.04
8.0.140.0120.00522.08
8.0.130.0130.00422.06
8.0.120.0120.00622.05
8.0.110.0110.00422.10
8.0.100.0120.00622.09
8.0.90.0120.00622.07
8.0.80.0110.00622.10
8.0.70.0120.00522.08
8.0.60.0120.00622.07
8.0.50.0120.00622.06
8.0.30.0110.00622.07
8.0.20.0130.00422.12
8.0.10.0130.00522.12
7.4.330.0110.00326.96
7.4.320.0130.00625.05
7.4.300.0150.00322.17
7.4.290.0120.00721.97
7.4.280.0170.00321.87
7.4.270.0150.00421.84
7.4.260.0130.00621.86
7.4.250.0130.00521.84
7.4.240.0150.00421.83
7.4.230.0150.00521.84
7.4.220.0140.00521.84
7.4.210.0130.00521.85
7.4.200.0130.00521.85
7.4.190.0110.00621.85
7.4.180.0120.00521.89
7.4.160.0130.00521.85
7.4.150.0130.00521.81
7.4.140.0120.00621.80
7.4.130.0140.00521.80
7.4.120.0140.00421.78
7.4.110.0130.00521.78
7.4.100.0120.00521.81
7.4.90.0130.00421.80
7.4.80.0110.00621.81
7.4.70.0110.00621.80
7.4.60.0110.00521.83
7.4.50.0110.00621.77
7.4.40.0120.00421.76
7.4.30.0100.00621.75
7.4.20.0120.00521.75
7.4.10.0110.00521.77
7.4.00.0130.00421.78

preferences:
44.51 ms | 400 KiB | 5 Q