3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Replace with the real server API key from Google APIs $apiKey = "AIzaSyDaRbV6xDrsAiEMzvK7cMu96-YbdvxBN98"; // Replace with the real client registration IDs $registrationIDs = array( "APA91bFEgFIFHLRFTI7aQUNuQWvuTKGBnx8M930v5aCpbSzBbU3VyDFYKaBBV7kfaVPAkfuHOES1ftmdLHCLcBWbi8u6-YuP2D_qGsSeH0JBZnb5p0n6OJ8","APA91bFEgFIFHLRFTI7aQUNuQWvuTKGBnx8M930v5aCpbSzBbU3VyDFYKaBBV7kfaVPAkfuHOES1ftmdLHCLcBWbi8u6-YuP2D_qGsSeH0JBZnb5p0n6OJ8"); // Message to be sent $message = "Hoi RayRay"; // 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.0070.01116.61
8.3.50.0110.00721.93
8.3.40.0060.00918.82
8.3.30.0110.00418.67
8.3.20.0050.00320.35
8.3.10.0080.00023.70
8.3.00.0040.00419.26
8.2.180.0110.01118.17
8.2.170.0140.00722.96
8.2.160.0030.01019.41
8.2.150.0050.00324.18
8.2.140.0050.00324.66
8.2.130.0090.00017.75
8.2.120.0040.00426.35
8.2.110.0030.00621.11
8.2.100.0030.00918.03
8.2.90.0000.00920.94
8.2.80.0040.00417.97
8.2.70.0050.00517.50
8.2.60.0030.00518.05
8.2.50.0060.00318.07
8.2.40.0040.00419.19
8.2.30.0040.00420.58
8.2.20.0090.00017.73
8.2.10.0040.00418.21
8.2.00.0040.00418.04
8.1.280.0110.00425.92
8.1.270.0040.00822.08
8.1.260.0070.00028.09
8.1.250.0080.00028.09
8.1.240.0040.00422.45
8.1.230.0110.00420.98
8.1.220.0030.00617.79
8.1.210.0070.00318.79
8.1.200.0000.00917.35
8.1.190.0080.00317.35
8.1.180.0000.00818.10
8.1.170.0050.00318.59
8.1.160.0000.00722.10
8.1.150.0070.00018.84
8.1.140.0000.00819.58
8.1.130.0000.00717.74
8.1.120.0000.00717.58
8.1.110.0050.00317.52
8.1.100.0040.00417.50
8.1.90.0000.00817.50
8.1.80.0040.00417.37
8.1.70.0030.00317.40
8.1.60.0000.00917.52
8.1.50.0000.00817.59
8.1.40.0000.00817.54
8.1.30.0070.00317.58
8.1.20.0050.00317.69
8.1.10.0000.00917.55
8.1.00.0040.00417.51
8.0.300.0060.00320.11
8.0.290.0000.00816.88
8.0.280.0050.00218.49
8.0.270.0040.00417.29
8.0.260.0060.00017.31
8.0.250.0040.00417.04
8.0.240.0030.00617.03
8.0.230.0000.00717.07
8.0.220.0050.00217.04
8.0.210.0000.00916.91
8.0.200.0000.00717.09
8.0.190.0080.00017.07
8.0.180.0040.00417.02
8.0.170.0060.00317.03
8.0.160.0030.00317.07
8.0.150.0070.00016.98
8.0.140.0080.00016.95
8.0.130.0060.00013.40
8.0.120.0040.00416.85
8.0.110.0040.00416.91
8.0.100.0000.00716.85
8.0.90.0090.00016.93
8.0.80.0060.00917.03
8.0.70.0050.00317.00
8.0.60.0070.00016.87
8.0.50.0040.00416.88
8.0.30.0110.00817.38
8.0.20.0130.00817.40
8.0.10.0000.00817.14
8.0.00.0100.01216.98
7.4.330.0050.00016.69
7.4.320.0030.00316.70
7.4.300.0030.00316.61
7.4.290.0000.00716.45
7.4.280.0040.00416.59
7.4.270.0030.00316.56
7.4.260.0000.00716.63
7.4.250.0040.00416.62
7.4.240.0030.00316.52
7.4.230.0030.00316.30
7.4.220.0110.00716.50
7.4.210.0100.00716.63
7.4.200.0030.00316.60
7.4.160.0060.00916.43
7.4.150.0130.00717.40
7.4.140.0140.01017.86
7.4.130.0120.00916.67
7.4.120.0090.00916.66
7.4.110.0120.00616.55
7.4.100.0170.00716.40
7.4.90.0120.00616.72
7.4.80.0060.01019.39
7.4.70.0060.01216.64
7.4.60.0100.00716.63
7.4.50.0040.01116.67
7.4.40.0070.01016.54
7.4.30.0100.00616.70
7.4.00.0100.00715.16
7.3.330.0000.00513.26
7.3.320.0000.00613.25
7.3.310.0030.00316.34
7.3.300.0030.00316.32
7.3.290.0040.01316.38
7.3.280.0130.00916.42
7.3.270.0180.00317.40
7.3.260.0080.00816.34
7.3.250.0110.00716.57
7.3.240.0080.01116.40
7.3.230.0120.00616.61
7.3.210.0090.01116.62
7.3.200.0140.00716.61
7.3.190.0140.00516.36
7.3.180.0090.00616.59
7.3.170.0120.00616.46
7.3.160.0060.00916.45
7.3.10.0070.00716.34
7.3.00.0000.01416.43
7.2.330.0090.00916.76
7.2.320.0120.01216.44
7.2.310.0140.00716.57
7.2.300.0120.00616.39
7.2.290.0090.01216.40
7.2.130.0000.01016.85
7.2.120.0090.00616.81
7.2.110.0100.00316.59
7.2.100.0170.00016.65
7.2.90.0090.00616.46
7.2.80.0090.00616.81
7.2.70.0110.00916.78
7.2.60.0070.00916.79
7.2.50.0230.00616.94
7.2.40.0060.01316.91
7.2.30.0060.01016.85
7.2.20.0040.00816.75
7.2.10.0080.00417.01
7.2.00.0030.00818.06
7.1.250.0090.00615.36
7.1.200.0040.01115.62
7.1.100.0080.00818.07
7.1.70.0030.00616.91
7.1.60.0140.01019.48
7.1.50.0200.01434.72
7.1.00.0030.07722.36
7.0.200.0350.00814.88
7.0.90.0130.06719.98
7.0.80.0330.08019.91
7.0.70.0600.08020.02
7.0.60.0470.05319.98
7.0.50.0500.08020.27
7.0.40.0100.05320.09
7.0.30.0100.07720.18
7.0.20.0100.05720.05
7.0.10.0170.08020.10
7.0.00.0070.06320.18
5.6.280.0070.06720.90
5.6.240.0130.07720.72
5.6.230.0130.07720.50
5.6.220.0100.07720.61
5.6.210.0070.03320.75
5.6.200.0130.05021.08
5.6.190.0130.07720.98
5.6.180.0070.06721.05
5.6.170.0100.04021.11
5.6.160.0200.07321.08
5.6.150.0100.08321.03
5.6.140.0000.05321.09
5.6.130.0070.09321.03
5.6.120.0130.05721.01
5.6.110.0130.08021.15
5.6.100.0130.04721.07
5.6.90.0100.08720.99
5.6.80.0100.07320.41
5.6.70.0170.04720.42
5.6.60.0070.08720.43
5.6.50.0170.07320.46
5.6.40.0030.05020.43
5.6.30.0000.07320.29
5.6.20.0070.05020.52
5.6.10.0170.06020.32
5.6.00.0130.05320.35
5.5.380.0070.07320.47
5.5.370.0070.04320.54
5.5.360.0070.07320.44
5.5.350.0030.08720.41
5.5.340.0070.04320.77
5.5.330.0100.06320.73
5.5.320.0130.07320.86
5.5.310.0130.07720.91
5.5.300.0000.08020.88
5.5.290.0070.07720.90
5.5.280.0100.08320.90
5.5.270.0100.08020.81
5.5.260.0130.07320.82
5.5.250.0000.05720.67
5.5.240.0100.07720.29
5.5.230.0100.06020.11
5.5.220.0070.05720.29
5.5.210.0070.06020.15
5.5.200.0100.07020.28
5.5.190.0100.07320.11
5.5.180.0100.03720.24
5.5.160.0030.08020.21
5.5.150.0030.04020.15
5.5.140.0130.06320.14
5.5.130.0070.04320.07
5.5.120.0100.07320.18
5.5.110.0070.07720.21
5.5.100.0070.08020.07
5.5.90.0000.07320.16
5.5.80.0200.05020.03
5.5.70.0030.07320.06
5.5.60.0130.07320.06
5.5.50.0170.03320.00
5.5.40.0200.04720.02
5.5.30.0100.07720.14
5.5.20.0070.06019.95
5.5.10.0200.05720.04
5.5.00.0100.07320.12

preferences:
50.09 ms | 401 KiB | 5 Q