3v4l.org

run code in 300+ PHP versions simultaneously
<?php // API access key from Google API's Console define( 'API_ACCESS_KEY', 'YOUR-API-ACCESS-KEY-GOES-HERE' ); $registrationIds = array("YOUR DEVICE IDS WILL GO HERE" ); // 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.40.0120.00318.70
8.3.30.0140.00019.07
8.3.20.0000.00720.20
8.3.10.0040.00422.09
8.3.00.0090.00022.57
8.2.170.0140.00322.96
8.2.160.0140.00720.92
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0040.00419.36
8.2.110.0070.00322.10
8.2.100.0040.00819.57
8.2.90.0040.00419.17
8.2.80.0030.00618.05
8.2.70.0000.00817.75
8.2.60.0030.00518.05
8.2.50.0080.00318.07
8.2.40.0050.00318.22
8.2.30.0000.00718.21
8.2.20.0040.00417.87
8.2.10.0000.00719.65
8.2.00.0040.00417.70
8.1.270.0050.00322.14
8.1.260.0000.01426.35
8.1.250.0080.00028.09
8.1.240.0060.00323.91
8.1.230.0070.00419.23
8.1.220.0040.00417.74
8.1.210.0080.00018.77
8.1.200.0040.00717.22
8.1.190.0000.00917.41
8.1.180.0040.00418.10
8.1.170.0050.00318.59
8.1.160.0000.00721.98
8.1.150.0050.00318.58
8.1.140.0050.00317.48
8.1.130.0030.00517.81
8.1.120.0040.00417.51
8.1.110.0080.00017.36
8.1.100.0000.00717.37
8.1.90.0050.00317.34
8.1.80.0000.00717.48
8.1.70.0000.00717.39
8.1.60.0040.00417.50
8.1.50.0040.00417.54
8.1.40.0060.00317.59
8.1.30.0040.00417.64
8.1.20.0050.00317.71
8.1.10.0070.00017.53
8.1.00.0000.00717.39
8.0.300.0000.00718.77
8.0.290.0000.00717.05
8.0.280.0040.00418.50
8.0.270.0070.00017.28
8.0.260.0030.00316.86
8.0.250.0070.00016.96
8.0.240.0040.00617.01
8.0.230.0040.00417.06
8.0.220.0000.00717.00
8.0.210.0000.00716.98
8.0.200.0030.00316.90
8.0.190.0030.00517.00
8.0.180.0040.00416.99
8.0.170.0030.00516.93
8.0.160.0000.00816.97
8.0.150.0000.00716.82
8.0.140.0050.00216.97
8.0.130.0000.00613.40
8.0.120.0050.00316.92
8.0.110.0040.00416.96
8.0.100.0000.00716.77
8.0.90.0050.00316.79
8.0.80.0060.01616.85
8.0.70.0050.00316.84
8.0.60.0000.00716.92
8.0.50.0040.00417.01
8.0.30.0130.00717.10
8.0.20.0070.01217.40
8.0.10.0080.00016.99
8.0.00.0100.01016.86
7.4.330.0000.00715.00
7.4.320.0030.00316.66
7.4.300.0020.00516.53
7.4.290.0000.00816.54
7.4.280.0050.00216.52
7.4.270.0040.00516.68
7.4.260.0070.00016.64
7.4.250.0000.00716.60
7.4.240.0000.00716.61
7.4.230.0070.00016.63
7.4.220.0080.00816.67
7.4.210.0080.00716.55
7.4.200.0030.00316.66
7.4.190.0000.00716.80
7.4.160.0030.01316.50
7.4.150.0000.01717.40
7.4.140.0200.01217.86
7.4.130.0110.00816.49
7.4.120.0080.01316.60
7.4.110.0100.00716.46
7.4.100.0090.00916.57
7.4.90.0030.01316.53
7.4.80.0110.00519.39
7.4.70.0040.01816.75
7.4.60.0110.00816.29
7.4.50.0060.00316.60
7.4.40.0100.00622.77
7.4.30.0070.01016.60
7.4.00.0000.01414.94
7.3.330.0030.00313.21
7.3.320.0000.00513.20
7.3.310.0000.00616.17
7.3.300.0070.00016.21
7.3.290.0060.01316.36
7.3.280.0080.00816.31
7.3.270.0120.01217.40
7.3.260.0110.00616.44
7.3.250.0120.00516.50
7.3.240.0060.01016.34
7.3.230.0000.01716.40
7.3.210.0130.00316.51
7.3.200.0130.00419.39
7.3.190.0070.01416.46
7.3.180.0030.01316.47
7.3.170.0100.00716.34
7.3.160.0070.01016.34
7.3.120.0040.01115.18
7.3.10.0030.01016.68
7.3.00.0120.00416.65
7.2.330.0060.01216.70
7.2.320.0180.00616.40
7.2.310.0100.00616.32
7.2.300.0030.01316.75
7.2.290.0060.01016.77
7.2.130.0100.00316.95
7.2.120.0080.00816.93
7.2.110.0080.00816.86
7.2.100.0120.00316.95
7.2.90.0110.00717.05
7.2.80.0030.00916.69
7.2.70.0120.00316.84
7.2.60.0090.00616.66
7.2.50.0090.00316.65
7.2.40.0070.01117.10
7.2.30.0000.01516.65
7.2.20.0040.00816.86
7.2.10.0040.01016.88
7.2.00.0080.00618.19
7.1.250.0060.00615.80
7.1.200.0000.00715.73
7.1.100.0040.01117.93
7.1.70.0000.00917.30
7.1.60.0130.01319.82
7.1.50.0070.01517.08
7.1.00.0030.07322.40
7.0.200.0040.01116.75
7.0.140.0030.07322.01
7.0.110.0030.05719.98
7.0.100.0070.04719.95
7.0.90.0070.04019.88
7.0.80.0100.02719.87
7.0.70.0070.04020.12
7.0.60.0030.05320.07
7.0.50.0030.03319.98
7.0.40.0100.03319.79
7.0.30.0070.05019.79
7.0.20.0000.04019.78
7.0.10.0030.04019.73
7.0.00.0030.03319.71
5.6.280.0000.07021.09
5.6.260.0030.03320.63
5.6.250.0100.08320.76
5.6.240.0000.04320.68
5.6.230.0070.07020.63
5.6.220.0030.03320.82
5.6.210.0030.04320.57
5.6.200.0100.03720.61
5.6.190.0000.04020.63
5.6.180.0030.04320.48
5.6.170.0070.04720.67
5.6.160.0030.03320.71
5.6.150.0000.04720.66
5.6.140.0070.04320.71
5.6.130.0130.03020.57
5.6.120.0000.04020.71
5.6.110.0070.03320.86
5.6.100.0070.04020.54
5.6.90.0100.03320.64
5.6.80.0030.03320.03
5.6.70.0030.03320.00
5.6.60.0130.02719.99
5.6.50.0030.03019.96
5.6.40.0000.04020.01
5.6.30.0030.04020.01
5.6.20.0030.03319.98
5.6.10.0070.03019.99
5.6.00.0070.06719.83
5.5.380.0030.04317.53
5.5.370.0100.05717.66
5.5.360.0100.06017.59
5.5.350.0030.03317.55
5.5.340.0000.04017.89
5.5.330.0070.03717.89
5.5.320.0130.02317.90
5.5.310.0030.03318.25
5.5.300.0000.03717.98
5.5.290.0030.03318.11
5.5.280.0030.04018.02
5.5.270.0000.04018.09
5.5.260.0070.03017.90
5.5.250.0100.03717.97
5.5.240.0000.03717.52
5.5.230.0030.03017.40
5.5.220.0030.03017.40
5.5.210.0000.03317.48
5.5.200.0070.03017.48
5.5.190.0030.03017.21
5.5.180.0030.03717.11
5.5.160.0030.03317.47
5.5.150.0030.03017.47
5.5.140.0030.03717.24
5.5.130.0030.03717.48
5.5.120.0130.06017.44
5.5.110.0070.03317.50
5.5.100.0000.04717.51
5.5.90.0100.03317.10
5.5.80.0000.04017.34
5.5.70.0070.02717.36
5.5.60.0070.02717.09
5.5.50.0000.03317.35
5.5.40.0070.03317.09
5.5.30.0000.03317.34
5.5.20.0100.03017.36
5.5.10.0030.03717.34
5.5.00.0030.03317.00
5.4.450.0030.04019.58
5.4.440.0070.04019.44
5.4.430.0000.04319.44
5.4.420.0070.03319.39
5.4.410.0100.02719.45
5.4.400.0000.03318.95
5.4.390.0000.04019.16
5.4.380.0070.03018.98
5.4.370.0030.03019.20
5.4.360.0030.03319.25
5.4.350.0030.03318.95
5.4.340.0000.03719.10
5.4.320.0000.03719.16
5.4.310.0070.03018.95
5.4.300.0030.03719.00
5.4.290.0030.03019.26
5.4.280.0000.07319.16
5.4.270.0000.05019.16
5.4.260.0030.03319.00
5.4.250.0030.03019.07
5.4.240.0000.04019.09
5.4.230.0030.03318.97
5.4.220.0030.03319.24
5.4.210.0030.03319.07
5.4.200.0030.03319.00
5.4.190.0030.03318.94
5.4.180.0030.03019.25
5.4.170.0100.02719.15
5.4.160.0030.03018.92
5.4.150.0030.03319.02
5.4.140.0000.03316.51
5.4.130.0070.03016.47
5.4.120.0000.03316.11
5.4.110.0070.03016.20
5.4.100.0030.03016.30
5.4.90.0070.02716.53
5.4.80.0030.03016.48
5.4.70.0030.03016.36
5.4.60.0000.03316.39
5.4.50.0000.03316.35
5.4.40.0030.03016.43
5.4.30.0030.03016.37
5.4.20.0000.03716.38
5.4.10.0070.03016.37
5.4.00.0030.03015.65
5.3.290.0000.03314.74
5.3.280.0000.03314.55
5.3.270.0000.03314.63
5.3.260.0100.02714.55
5.3.250.0030.03014.56
5.3.240.0030.03014.54
5.3.230.0000.03314.55
5.3.220.0100.02714.46
5.3.210.0070.02714.43
5.3.200.0030.03014.50
5.3.190.0100.02314.52
5.3.180.0070.02714.52
5.3.170.0000.03314.58
5.3.160.0070.02714.63
5.3.150.0000.03314.42
5.3.140.0030.03014.36
5.3.130.0030.03714.45
5.3.120.0030.04014.40
5.3.110.0000.03314.50
5.3.100.0070.02714.12
5.3.90.0070.03313.97
5.3.80.0070.02714.13
5.3.70.0070.02713.91
5.3.60.0000.03313.95
5.3.50.0030.03013.80
5.3.40.0070.03314.03
5.3.30.0030.03013.94
5.3.20.0030.02713.56
5.3.10.0070.02713.49
5.3.00.0000.04013.55
5.2.170.0070.02312.35
5.2.160.0030.02712.35
5.2.150.0030.02312.35
5.2.140.0000.02712.35
5.2.130.0000.02712.35
5.2.120.0000.02712.35
5.2.110.0000.02712.35
5.2.100.0000.02712.35
5.2.90.0030.02312.35
5.2.80.0000.02712.35
5.2.70.0030.02712.35
5.2.60.0030.02312.35
5.2.50.0000.03012.35
5.2.40.0000.02712.35
5.2.30.0030.02312.35
5.2.20.0030.02312.35
5.2.10.0030.02012.35
5.2.00.0030.02312.35
5.1.60.0000.02312.35
5.1.50.0070.01712.35
5.1.40.0000.02012.35
5.1.30.0000.02312.35
5.1.20.0070.01712.35
5.1.10.0030.02012.35
5.1.00.0000.02312.35
5.0.50.0030.01712.35
5.0.40.0000.02012.35
5.0.30.0000.02712.35
5.0.20.0030.01312.35
5.0.10.0000.02012.35
5.0.00.0000.03012.35
4.4.90.0000.01312.35
4.4.80.0000.01312.35
4.4.70.0030.01012.35
4.4.60.0000.01312.35
4.4.50.0000.01312.35
4.4.40.0070.01712.35
4.4.30.0000.01312.35
4.4.20.0000.01312.35
4.4.10.0000.01312.35
4.4.00.0070.01312.35
4.3.110.0000.01312.35
4.3.100.0030.01012.35
4.3.90.0000.01312.35
4.3.80.0000.02312.35
4.3.70.0030.01012.35
4.3.60.0000.01312.35
4.3.50.0000.01712.35
4.3.40.0000.02012.35
4.3.30.0000.01312.35
4.3.20.0000.01312.35
4.3.10.0000.01312.35
4.3.00.0000.01312.35

preferences:
41.23 ms | 400 KiB | 5 Q