3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Replace with the real server API key from Google APIs $apiKey = "AIzaSyBFtNb7a_TCtxSqkiWUc5qGKVJ1KJtIa0s"; // Replace with the real client registration IDs $registrationIDs = array("APA91bHxXsOqvgC9uGcdZ7rV0EukYbS7pQY4Y4wqMfeh4xtJ0F_vXzvN1Uk6g0mWz2opmcfUYM9VrlfFpPBj0ND4lHVOqbVAPU5FiJ03Q8AwrCb7UIuK67Sveh5yGCPsi_rPcTIbMjAk"); // Message to be sent $message = "hi Shailesh"; // Set POST variables $url = 'https://android.googleapis.com/gcm/send'; $fields = array( 'registration_ids' => $registrationIDs, 'data' => array( "message" => $message ), ); $headers = array( 'Authorization: key=' . $apiKey, 'Content-Type: application/json' ); // Open connection $ch = curl_init(); // Set the URL, number of POST vars, POST data curl_setopt( $ch, CURLOPT_URL, $url); curl_setopt( $ch, CURLOPT_POST, true); curl_setopt( $ch, CURLOPT_HTTPHEADER, $headers); curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true); //curl_setopt( $ch, CURLOPT_POSTFIELDS, json_encode( $fields)); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); // curl_setopt($ch, CURLOPT_POST, true); // curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode( $fields)); // Execute post $result = curl_exec($ch); // Close connection curl_close($ch); echo $result; //print_r($result); //var_dump($result); ?>

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.0080.00816.50
8.3.50.0060.00916.37
8.3.40.0050.00918.89
8.3.30.0000.01418.66
8.3.20.0070.00422.09
8.3.10.0080.00023.61
8.3.00.0040.00419.38
8.2.180.0080.00616.63
8.2.170.0070.01422.96
8.2.160.0070.00720.38
8.2.150.0040.00424.18
8.2.140.0030.00624.66
8.2.130.0040.00421.03
8.2.120.0040.00426.35
8.2.110.0240.01220.35
8.2.100.0040.00817.84
8.2.90.0030.00619.22
8.2.80.0030.00617.97
8.2.70.0080.00017.75
8.2.60.0080.00018.03
8.2.50.0040.00418.10
8.2.40.0080.00020.48
8.2.30.0000.00819.32
8.2.20.0000.00718.10
8.2.10.0040.00418.13
8.2.00.0000.00718.13
8.1.280.0060.01325.92
8.1.270.0040.00422.17
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0090.00022.23
8.1.230.0080.00419.04
8.1.220.0040.00417.79
8.1.210.0060.00318.77
8.1.200.0000.00917.36
8.1.190.0000.00917.35
8.1.180.0050.00218.10
8.1.170.0040.00418.65
8.1.160.0040.00419.04
8.1.150.0030.00620.68
8.1.140.0000.00719.48
8.1.130.0040.00418.78
8.1.120.0000.00717.43
8.1.110.0030.00517.46
8.1.100.0000.00717.49
8.1.90.0030.00617.48
8.1.80.0050.00217.53
8.1.70.0000.00817.45
8.1.60.0090.00017.58
8.1.50.0040.00417.56
8.1.40.0080.00017.52
8.1.30.0000.00717.69
8.1.20.0060.00317.55
8.1.10.0100.00017.59
8.1.00.0030.00617.50
8.0.300.0040.00420.07
8.0.290.0000.00716.75
8.0.280.0030.00518.46
8.0.270.0050.00317.30
8.0.260.0000.00716.87
8.0.250.0030.00316.89
8.0.240.0100.00017.00
8.0.230.0030.00316.93
8.0.220.0000.00716.87
8.0.210.0050.00317.01
8.0.200.0060.00016.99
8.0.190.0040.00417.05
8.0.180.0040.00416.96
8.0.170.0040.00417.05
8.0.160.0040.00316.94
8.0.150.0070.00016.92
8.0.140.0050.00316.92
8.0.130.0000.00713.43
8.0.120.0040.00416.83
8.0.110.0070.00016.98
8.0.100.0070.00016.83
8.0.90.0000.00716.94
8.0.80.0120.00416.99
8.0.70.0000.00816.80
8.0.60.0040.00416.92
8.0.50.0040.00417.07
8.0.30.0090.00817.04
8.0.20.0130.01017.40
8.0.10.0040.00417.02
8.0.00.0080.00916.67
7.4.330.0000.00515.55
7.4.320.0000.00716.63
7.4.300.0060.00016.53
7.4.290.0060.00316.43
7.4.280.0000.00716.57
7.4.270.0000.00716.68
7.4.260.0040.00416.62
7.4.250.0050.00316.51
7.4.240.0000.00716.53
7.4.230.0000.00716.73
7.4.220.0120.01216.71
7.4.210.0110.00616.57
7.4.200.0070.00016.52
7.4.160.0110.00516.64
7.4.150.0120.01217.40
7.4.140.0090.00817.86
7.4.130.0140.00716.65
7.4.120.0120.01016.57
7.4.110.0100.00716.53
7.4.100.0100.00916.65
7.4.90.0130.00716.61
7.4.80.0070.01019.39
7.4.70.0070.01016.79
7.4.60.0160.00016.54
7.4.50.0070.01016.41
7.4.40.0050.01116.59
7.4.30.0060.01216.44
7.4.00.0100.00315.28
7.3.330.0050.00013.21
7.3.320.0000.00513.21
7.3.310.0040.00416.24
7.3.300.0000.00616.32
7.3.290.0030.00316.43
7.3.280.0090.00816.45
7.3.270.0120.00617.40
7.3.260.0190.01416.54
7.3.250.0110.00816.48
7.3.240.0120.00816.41
7.3.230.0110.00716.56
7.3.210.0080.01116.60
7.3.200.0030.01716.48
7.3.190.0080.01016.38
7.3.180.0060.01016.65
7.3.170.0140.00416.40
7.3.160.0040.01516.52
7.2.330.0120.00616.51
7.2.320.0120.00616.43
7.2.310.0130.00316.68
7.2.300.0030.01416.44
7.2.290.0150.00316.75
7.2.60.0090.00616.82
7.2.00.0040.01119.25
7.1.200.0030.00315.77
7.1.100.0040.01318.07
7.1.70.0070.00717.22
7.1.60.0230.00334.75
7.1.50.0240.00334.73
7.1.40.0210.00734.27
7.1.30.0150.01534.45
7.1.20.0250.00334.51
7.1.10.0070.00716.57
7.1.00.0060.00916.87
7.0.200.0070.00716.88
7.0.190.0070.01016.77
7.0.180.0100.00316.14
7.0.170.0060.00916.38
7.0.160.0030.01016.16
7.0.150.0030.01016.16
7.0.140.0030.01016.21
7.0.130.0030.01216.48
7.0.120.0030.01216.59
7.0.110.0040.00816.24
7.0.100.0040.00816.27
7.0.90.0000.01816.37
7.0.80.0000.01416.46
7.0.70.0000.01316.36
7.0.60.0030.01016.02
7.0.50.0090.00616.42
7.0.40.0000.01316.52
7.0.30.0000.01416.60
7.0.20.0030.01016.62
7.0.10.0030.01016.46
7.0.00.0150.00316.35

preferences:
71.66 ms | 401 KiB | 5 Q