3v4l.org

run code in 300+ PHP versions simultaneously
<?php // API access key from Google API's Console define( 'API_ACCESS_KEY', 'AIzaSyDpUldgkFuf4z2SwaJccJyfTE6cIe0Dlsw' ); $registrationIds = array("APA91bHD-nC0AZBHzQjRWug6omFhVY4gU8L_7cMYZb6LueTlkMEall3-Qt_WjLlaX9xrMZ7o48L2erLg-CAX8UuWBWRbZf_7vVlLKkftRt5tZt9ol_v5EyAkplIx3Bi1eDlqM7nJwplg" ); // prep the bundle $msg = array ( 'message' => 'here is a message. message', 'title' => 'This is a title. title', 'subtitle' => 'This is a subtitle. subtitle', 'tickerText' => 'Ticker text here...Ticker text here...Ticker text here', 'vibrate' => 1, 'sound' => 1 ); $fields = array ( 'registration_ids' => $registrationIds, 'data' => $msg ); $headers = array ( 'Authorization: key=' . API_ACCESS_KEY, 'Content-Type: application/json' ); $ch = curl_init(); curl_setopt( $ch,CURLOPT_URL, 'https://android.googleapis.com/gcm/send' ); curl_setopt( $ch,CURLOPT_POST, true ); curl_setopt( $ch,CURLOPT_HTTPHEADER, $headers ); curl_setopt( $ch,CURLOPT_RETURNTRANSFER, true ); curl_setopt( $ch,CURLOPT_SSL_VERIFYPEER, false ); curl_setopt( $ch,CURLOPT_POSTFIELDS, json_encode( $fields ) ); $result = curl_exec($ch ); curl_close( $ch ); echo $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.75
8.3.50.0090.01322.05
8.3.40.0040.01118.85
8.3.30.0070.00718.68
8.3.20.0080.00020.07
8.3.10.0050.00323.61
8.3.00.0040.00417.50
8.2.180.0100.01017.00
8.2.170.0040.01822.96
8.2.160.0080.00520.27
8.2.150.0080.00024.18
8.2.140.0050.00224.66
8.2.130.0000.00726.16
8.2.120.0050.00517.50
8.2.110.0060.00319.39
8.2.100.0040.00717.84
8.2.90.0060.00319.17
8.2.80.0040.00417.97
8.2.70.0060.00317.75
8.2.60.0030.00617.93
8.2.50.0040.00418.07
8.2.40.0030.00519.39
8.2.30.0030.00720.65
8.2.20.0050.00317.83
8.2.10.0000.00818.05
8.2.00.0040.00418.18
8.1.280.0070.00725.92
8.1.270.0040.00423.96
8.1.260.0070.00026.35
8.1.250.0030.00528.09
8.1.240.0030.00721.43
8.1.230.0110.00017.42
8.1.220.0000.00917.74
8.1.210.0050.00318.77
8.1.200.0000.00917.35
8.1.190.0040.00417.23
8.1.180.0040.00418.10
8.1.170.0050.00318.93
8.1.160.0000.00721.97
8.1.150.0000.00718.79
8.1.140.0070.00018.91
8.1.130.0050.00217.70
8.1.120.0000.00717.50
8.1.110.0070.00017.33
8.1.100.0000.00717.38
8.1.90.0030.00317.53
8.1.80.0070.00017.48
8.1.70.0040.00417.51
8.1.60.0040.00417.61
8.1.50.0050.00317.46
8.1.40.0030.00517.50
8.1.30.0080.00017.68
8.1.20.0080.00017.71
8.1.10.0070.00017.66
8.1.00.0050.00217.54
8.0.300.0040.00418.77
8.0.290.0090.00016.75
8.0.280.0000.00718.39
8.0.270.0040.00416.96
8.0.260.0060.00017.29
8.0.250.0040.00417.07
8.0.240.0000.00717.03
8.0.230.0070.00016.93
8.0.220.0070.00316.88
8.0.210.0000.00816.95
8.0.200.0000.00616.95
8.0.190.0050.00317.01
8.0.180.0040.00416.91
8.0.170.0070.00017.04
8.0.160.0080.00017.08
8.0.150.0080.00016.99
8.0.140.0000.00716.91
8.0.130.0000.00513.29
8.0.120.0000.00816.94
8.0.110.0040.00416.90
8.0.100.0000.00717.02
8.0.90.0030.00516.88
8.0.80.0090.01217.02
8.0.70.0040.00416.85
8.0.60.0040.00417.01
8.0.50.0030.00616.81
8.0.30.0090.00917.10
8.0.20.0080.01017.40
8.0.10.0030.00417.09
8.0.00.0120.00516.78
7.4.330.0030.00315.08
7.4.320.0000.00616.54
7.4.300.0000.00716.62
7.4.290.0040.00416.45
7.4.280.0020.00516.67
7.4.270.0040.00416.63
7.4.260.0000.00716.62
7.4.250.0000.00716.51
7.4.240.0000.00716.61
7.4.230.0070.00016.47
7.4.220.0060.01216.48
7.4.210.0060.01116.68
7.4.200.0000.00716.37
7.4.160.0060.00916.53
7.4.150.0160.00817.40
7.4.140.0150.01017.86
7.4.130.0080.01416.45
7.4.120.0140.00616.54
7.4.110.0070.01016.48
7.4.100.0130.00616.63
7.4.90.0080.00816.61
7.4.80.0110.00619.39
7.4.70.0030.01416.54
7.4.60.0030.01716.50
7.4.50.0050.00316.67
7.4.40.0110.00516.64
7.4.30.0090.01316.33
7.4.00.0040.00815.07
7.3.330.0070.00013.29
7.3.320.0020.00213.34
7.3.310.0030.00316.42
7.3.300.0000.00616.34
7.3.290.0000.00716.41
7.3.280.0070.01116.39
7.3.270.0090.00917.40
7.3.260.0100.00616.41
7.3.250.0100.00716.52
7.3.240.0090.00916.39
7.3.230.0060.01016.65
7.3.210.0080.01316.63
7.3.200.0100.01316.52
7.3.190.0120.00616.65
7.3.180.0080.00816.33
7.3.170.0130.00616.33
7.3.160.0130.00316.51
7.3.10.0060.00616.61
7.3.00.0100.00016.82
7.2.330.0040.01416.88
7.2.320.0070.01116.31
7.2.310.0170.00616.67
7.2.300.0080.00816.40
7.2.290.0120.01016.75
7.2.130.0040.00816.70
7.2.120.0110.00016.72
7.2.110.0070.00316.75
7.2.100.0000.01116.96
7.2.90.0070.00616.88
7.2.80.0110.00016.76
7.2.70.0040.01116.94
7.2.60.0060.00716.87
7.2.50.0050.00816.93
7.2.40.0030.00716.57
7.2.30.0120.00316.56
7.2.20.0030.00917.14
7.2.10.0110.00416.66
7.2.00.0020.00918.22
7.1.250.0090.00015.81
7.1.200.0040.00715.65
7.1.100.0030.00918.25
7.1.70.0040.00417.03
7.1.60.0060.01919.43
7.1.50.0000.01116.59
7.1.00.0030.07722.43
7.0.200.0040.00814.88
7.0.90.0530.04020.01
7.0.80.0470.03719.95
7.0.70.0270.05019.86
7.0.60.0600.07319.95
7.0.50.0700.06320.27
7.0.40.0000.07719.95
7.0.30.0100.08320.17
7.0.20.0100.07720.16
7.0.10.0030.08720.07
7.0.00.0070.09020.03
5.6.280.0000.07021.12
5.6.240.0070.04320.70
5.6.230.0030.05020.70
5.6.220.0070.04020.63
5.6.210.0100.08020.46
5.6.200.0100.07720.98
5.6.190.0000.04721.05
5.6.180.0070.06721.05
5.6.170.0030.05720.97
5.6.160.0030.05020.95
5.6.150.0070.06321.12
5.6.140.0100.04021.04
5.6.130.0130.07720.97
5.6.120.0170.06720.97
5.6.110.0030.04721.09
5.6.100.0200.07321.17
5.6.90.0130.08321.16
5.6.80.0030.05320.34
5.6.70.0100.05720.45
5.6.60.0130.06720.36
5.6.50.0030.04320.39
5.6.40.0000.04720.39
5.6.30.0100.07720.51
5.6.20.0030.05720.37
5.6.10.0070.08320.40
5.6.00.0100.06720.37
5.5.380.0130.06720.46
5.5.370.0100.04320.36
5.5.360.0030.05020.37
5.5.350.0200.07020.46
5.5.340.0070.08320.92
5.5.330.0070.05720.93
5.5.320.0170.04720.64
5.5.310.0070.04720.84
5.5.300.0100.07320.94
5.5.290.0030.08020.94
5.5.280.0070.04720.84
5.5.270.0030.05720.71
5.5.260.0030.05320.76
5.5.250.0070.05720.46
5.5.240.0200.06720.20
5.5.230.0130.04020.18
5.5.220.0130.07320.25
5.5.210.0070.05720.16
5.5.200.0030.05020.25
5.5.190.0030.05720.29
5.5.180.0030.04320.13
5.5.160.0070.05020.09
5.5.150.0000.05320.24
5.5.140.0100.07720.22
5.5.130.0030.04320.24
5.5.120.0100.03320.29
5.5.110.0100.05320.09
5.5.100.0070.07020.09
5.5.90.0030.04720.07
5.5.80.0130.03320.17
5.5.70.0070.04020.16
5.5.60.0030.04020.09
5.5.50.0030.08020.07
5.5.40.0100.04720.16
5.5.30.0070.04720.06
5.5.20.0030.08720.11
5.5.10.0000.08320.03
5.5.00.0030.04719.94
5.4.450.0070.08019.55
5.4.440.0070.06719.13
5.4.430.0070.07319.46
5.4.420.0100.06719.37
5.4.410.0070.08019.00
5.4.400.0070.07719.13
5.4.390.0100.07019.11
5.4.380.0100.07019.12
5.4.370.0100.05718.96
5.4.360.0100.06018.90
5.4.350.0070.07319.10
5.4.340.0130.07019.07
5.4.320.0130.07018.92
5.4.310.0170.06319.07
5.4.300.0070.06719.04
5.4.290.0100.07319.04
5.4.280.0030.04719.02
5.4.270.0170.07018.98
5.4.260.0030.07019.12
5.4.250.0130.07019.11
5.4.240.0000.04319.19
5.4.230.0070.07718.77
5.4.220.0100.03318.80
5.4.210.0070.06019.02
5.4.200.0130.05319.09
5.4.190.0200.06018.93
5.4.180.0100.07018.95
5.4.170.0130.07319.21
5.4.160.0100.04318.88
5.4.150.0070.07719.12
5.4.140.0030.07716.32
5.4.130.0100.07316.02
5.4.120.0130.06316.33
5.4.110.0070.07316.30
5.4.100.0100.04316.44
5.4.90.0030.07716.23
5.4.80.0070.07016.34
5.4.70.0100.07016.17
5.4.60.0070.07316.43
5.4.50.0130.06716.28
5.4.40.0170.06316.24
5.4.30.0030.05016.19
5.4.20.0100.03016.34
5.4.10.0100.06716.31
5.4.00.0200.06015.67

preferences:
61.32 ms | 401 KiB | 5 Q