3v4l.org

run code in 300+ PHP versions simultaneously
<?php // API access key from Google API's Console define( 'API_ACCESS_KEY', 'AIzaSyA1lrfkBkQx2idx9U6LezvLJdsAwoUuyiY' ); $registrationIds = array("APA91bEjNw7BGTa8AAUp7YstHvSAdW-p42QrYHIAtUXaZGKzvF4DV2Yuszshmvn20HrmWYL1hkdje-LuKghJYXO8N_YW9Su7vabAKg6_dZ4W_6Ho1vCqU1l4OeXBYqMc80_vt8qUrRFw " ); // 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.00716.63
8.3.50.0150.00317.58
8.3.40.0070.00718.94
8.3.30.0090.00618.70
8.3.20.0080.00018.78
8.3.10.0000.00820.51
8.3.00.0050.00317.63
8.2.180.0100.01016.50
8.2.170.0100.01022.96
8.2.160.0100.01022.05
8.2.150.0040.00424.18
8.2.140.0050.00224.66
8.2.130.0050.00326.16
8.2.120.0040.00419.82
8.2.110.0090.00021.03
8.2.100.0030.00817.84
8.2.90.0080.00019.35
8.2.80.0040.00418.04
8.2.70.0030.00617.63
8.2.60.0000.00817.93
8.2.50.0040.00418.07
8.2.40.0080.00020.01
8.2.30.0050.00318.05
8.2.20.0080.00017.79
8.2.10.0030.00617.75
8.2.00.0040.00417.81
8.1.280.0110.00425.92
8.1.270.0040.00424.66
8.1.260.0000.00826.35
8.1.250.0030.00628.09
8.1.240.0090.00022.54
8.1.230.0090.00320.98
8.1.220.0040.00418.77
8.1.210.0040.00419.04
8.1.200.0030.00617.35
8.1.190.0020.00517.53
8.1.180.0040.00418.10
8.1.170.0000.00718.97
8.1.160.0000.00818.91
8.1.150.0030.00618.55
8.1.140.0060.00317.51
8.1.130.0080.00017.89
8.1.120.0080.00017.54
8.1.110.0000.00717.37
8.1.100.0050.00317.46
8.1.90.0000.00717.50
8.1.80.0050.00617.42
8.1.70.0070.00017.47
8.1.60.0000.00717.57
8.1.50.0000.00717.54
8.1.40.0000.00717.51
8.1.30.0030.00617.69
8.1.20.0000.00817.69
8.1.10.0070.00017.50
8.1.00.0040.00417.53
8.0.300.0080.00019.98
8.0.290.0000.00816.75
8.0.280.0070.00018.39
8.0.270.0000.00717.28
8.0.260.0030.00616.91
8.0.250.0000.00717.05
8.0.240.0060.00316.93
8.0.230.0030.00317.07
8.0.220.0000.00716.97
8.0.210.0000.00717.00
8.0.200.0060.00016.93
8.0.190.0000.00817.01
8.0.180.0000.00717.02
8.0.170.0030.00617.02
8.0.160.0000.00816.94
8.0.150.0040.00416.89
8.0.140.0050.00316.97
8.0.130.0030.00313.45
8.0.120.0000.00816.97
8.0.110.0000.00716.98
8.0.100.0000.00716.86
8.0.90.0070.00017.05
8.0.80.0060.00916.91
8.0.70.0070.00017.04
8.0.60.0060.00317.07
8.0.50.0040.00416.86
8.0.30.0080.01017.22
8.0.20.0060.01317.24
8.0.10.0030.00317.07
8.0.00.0090.00816.66
7.4.330.0030.00314.66
7.4.320.0060.00016.53
7.4.300.0030.00316.64
7.4.290.0040.00416.39
7.4.280.0040.00516.57
7.4.270.0040.00416.68
7.4.260.0030.00313.25
7.4.250.0040.00416.48
7.4.240.0040.00416.53
7.4.230.0000.00716.54
7.4.220.0160.00716.59
7.4.210.0110.00516.61
7.4.200.0030.00316.66
7.4.190.0030.00316.79
7.4.160.0170.00016.45
7.4.150.0090.00917.07
7.4.140.0090.00817.24
7.4.130.0100.00616.55
7.4.120.0090.01016.63
7.4.110.0030.01316.69
7.4.100.0100.01316.43
7.4.90.0160.00816.58
7.4.80.0040.01318.80
7.4.70.0070.01416.50
7.4.60.0140.01016.57
7.4.50.0040.00423.17
7.4.40.0040.01121.69
7.4.30.0090.00616.70
7.4.00.0080.00714.94
7.3.330.0000.00613.20
7.3.320.0050.00013.25
7.3.310.0000.00716.48
7.3.300.0000.00716.39
7.3.290.0130.00316.38
7.3.280.0060.01316.39
7.3.270.0150.00317.07
7.3.260.0100.00718.24
7.3.250.0100.00916.46
7.3.240.0090.00916.36
7.3.230.0060.00916.38
7.3.210.0120.00916.54
7.3.200.0120.01119.39
7.3.190.0110.00716.36
7.3.180.0120.00316.41
7.3.170.0130.00916.42
7.3.160.0000.01416.57
7.3.120.0060.01214.90
7.3.110.0120.00715.04
7.3.100.0060.01114.76
7.3.90.0040.01014.79
7.3.80.0090.00614.75
7.3.70.0100.00314.94
7.3.60.0060.00914.83
7.3.50.0030.00814.90
7.3.40.0080.00314.90
7.3.30.0080.00614.84
7.3.20.0030.01116.78
7.3.10.0030.01416.59
7.3.00.0070.00616.71
7.2.330.0000.01716.75
7.2.320.0090.00916.52
7.2.310.0210.00316.55
7.2.300.0070.01116.89
7.2.290.0060.01216.75
7.2.250.0050.01515.13
7.2.240.0070.01315.10
7.2.230.0060.01015.10
7.2.220.0030.01215.10
7.2.210.0050.01215.12
7.2.200.0110.00214.99
7.2.190.0050.01114.87
7.2.180.0050.00515.12
7.2.170.0030.00814.98
7.2.130.0070.00716.92
7.2.120.0100.00316.86
7.2.110.0070.00716.90
7.2.100.0060.00616.70
7.2.90.0000.01316.88
7.2.80.0030.01016.69
7.2.70.0120.00017.07
7.2.60.0050.00916.90
7.2.50.0030.00616.66
7.2.40.0070.00717.02
7.2.30.0110.00417.01
7.2.20.0090.00316.89
7.2.10.0030.01016.88
7.2.00.0050.01118.07
7.1.330.0070.00715.91
7.1.320.0030.00815.60
7.1.310.0050.01215.73
7.1.300.0090.00515.66
7.1.290.0030.00915.88
7.1.280.0040.01115.70
7.1.270.0070.00715.67
7.1.260.0030.01015.81
7.1.250.0000.01015.87
7.1.200.0000.01416.00
7.1.100.0000.01118.21
7.1.70.0000.00817.31
7.1.60.0130.01019.40
7.1.50.0060.01416.63
7.1.00.0070.03022.39
7.0.200.0040.00416.90
7.0.140.0070.07322.10
7.0.120.0000.03322.18
7.0.90.0100.07719.89
7.0.80.0170.07719.94
7.0.70.0630.06720.02
7.0.60.0170.07719.95
7.0.50.0470.08320.41
7.0.40.0030.04319.95
7.0.30.0170.07320.17
7.0.20.0070.05720.03
7.0.10.0170.07320.07
7.0.00.0100.05720.04
5.6.280.0070.07021.00
5.6.240.0000.09320.52
5.6.230.0100.08020.76
5.6.220.0030.09020.61
5.6.210.0100.07720.67
5.6.200.0100.08021.06
5.6.190.0170.07321.09
5.6.180.0070.08721.05
5.6.170.0130.06721.15
5.6.160.0130.07020.95
5.6.150.0130.07721.09
5.6.140.0130.07720.95
5.6.130.0170.03721.01
5.6.120.0070.08721.18
5.6.110.0130.08020.95
5.6.100.0100.08321.02
5.6.90.0100.06021.10
5.6.80.0100.07020.41
5.6.70.0030.07720.55
5.6.60.0070.07320.39
5.6.50.0000.05720.42
5.6.40.0130.03720.39
5.6.30.0100.06020.39
5.6.20.0100.07320.41
5.6.10.0100.06720.41
5.6.00.0030.04720.34
5.5.380.0030.07720.40
5.5.370.0130.05720.37
5.5.360.0070.07720.43
5.5.350.0070.08720.43
5.5.340.0000.08720.90
5.5.330.0030.05320.79
5.5.320.0030.05020.80
5.5.310.0100.07320.92
5.5.300.0100.07020.88
5.5.290.0100.07320.94
5.5.280.0070.05020.87
5.5.270.0070.05320.89
5.5.260.0270.05720.86
5.5.250.0070.04020.72
5.5.240.0030.08020.32
5.5.230.0100.07020.25
5.5.220.0070.07720.21
5.5.210.0100.07320.27
5.5.200.0030.04320.20
5.5.190.0170.07320.14
5.5.180.0070.06320.14
5.5.160.0130.07720.25
5.5.150.0030.08720.18
5.5.140.0170.07320.24
5.5.130.0070.08020.13
5.5.120.0100.07320.10
5.5.110.0100.08020.23
5.5.100.0070.08320.08
5.5.90.0100.07720.10
5.5.80.0130.07020.07
5.5.70.0200.05720.01
5.5.60.0100.06720.07
5.5.50.0200.03320.09
5.5.40.0100.07320.04
5.5.30.0030.04720.09
5.5.20.0130.07020.15
5.5.10.0100.06719.99
5.5.00.0000.04320.08
5.4.450.0070.07319.55
5.4.440.0070.04019.45
5.4.430.0070.08019.39
5.4.420.0030.05719.29
5.4.410.0130.07019.10
5.4.400.0130.03719.07
5.4.390.0070.07319.10
5.4.380.0100.06318.96
5.4.370.0200.06318.96
5.4.360.0100.05018.78
5.4.350.0070.04719.08
5.4.340.0030.08019.14
5.4.320.0100.07318.96
5.4.310.0070.07318.83
5.4.300.0130.07019.14
5.4.290.0030.08318.96
5.4.280.0030.08019.02
5.4.270.0130.07019.06
5.4.260.0100.04018.91
5.4.250.0030.08319.04
5.4.240.0000.05319.06
5.4.230.0030.04719.09
5.4.220.0030.04318.97
5.4.210.0130.06719.11
5.4.200.0100.07718.93
5.4.190.0070.07319.10
5.4.180.0070.07018.98
5.4.170.0000.04318.77
5.4.160.0070.03318.78
5.4.150.0030.04019.02
5.4.140.0030.06716.30
5.4.130.0000.05016.23
5.4.120.0030.03716.27
5.4.110.0030.05716.45
5.4.100.0000.03716.32
5.4.90.0070.03016.40
5.4.80.0070.03016.36
5.4.70.0030.03316.29
5.4.60.0030.03316.33
5.4.50.0030.03316.27
5.4.40.0070.03316.29
5.4.30.0030.06716.24
5.4.20.0030.03316.18
5.4.10.0070.06716.20
5.4.00.0070.03015.86
5.3.290.0030.07714.54
5.3.280.0000.07314.54
5.3.270.0070.07014.52
5.3.260.0000.04314.47
5.3.250.0030.03714.43
5.3.240.0070.06014.46
5.3.230.0030.03314.47
5.3.220.0030.04014.59
5.3.210.0000.03714.43
5.3.200.0030.04014.54
5.3.190.0000.04314.44
5.3.180.0000.04014.41
5.3.170.0000.04014.44
5.3.160.0000.05314.43
5.3.150.0070.03314.52
5.3.140.0000.04014.52
5.3.130.0000.05314.52
5.3.120.0030.04014.54
5.3.110.0030.04714.51
5.3.100.0070.03313.93
5.3.90.0000.04013.89
5.3.80.0030.05014.02
5.3.70.0030.03713.98
5.3.60.0100.05314.02
5.3.50.0070.07013.92
5.3.40.0070.03313.71
5.3.30.0000.03713.80
5.3.20.0030.04013.70
5.3.10.0030.03713.60
5.3.00.0030.04313.56
5.2.170.0000.05711.17
5.2.160.0030.02711.15
5.2.150.0100.02711.18
5.2.140.0000.03311.13
5.2.130.0030.02711.15
5.2.120.0030.04010.96
5.2.110.0000.03010.97
5.2.100.0070.02311.03
5.2.90.0000.03010.93
5.2.80.0030.03011.13
5.2.70.0100.05010.90
5.2.60.0000.03011.04
5.2.50.0000.03310.82
5.2.40.0000.03011.08
5.2.30.0030.02710.91
5.2.20.0030.03010.96
5.2.10.0030.03310.93
5.2.00.0030.02310.58
5.1.60.0030.0239.84
5.1.50.0000.02710.05
5.1.40.0000.02710.02
5.1.30.0000.03310.27
5.1.20.0000.02710.41
5.1.10.0000.02710.13
5.1.00.0000.0309.92
5.0.50.0030.0208.39
5.0.40.0030.0178.49
5.0.30.0030.0338.30
5.0.20.0000.0208.29
5.0.10.0000.0238.17
5.0.00.0030.0478.29
4.4.90.0030.0138.14
4.4.80.0000.0208.14
4.4.70.0000.0208.14
4.4.60.0000.0178.14
4.4.50.0000.0338.14
4.4.40.0030.0208.14
4.4.30.0030.0138.14
4.4.20.0000.0138.14
4.4.10.0000.0178.14
4.4.00.0000.0278.14
4.3.110.0000.0178.14
4.3.100.0000.0178.14
4.3.90.0000.0138.14
4.3.80.0000.0238.14
4.3.70.0000.0178.14
4.3.60.0030.0238.14
4.3.50.0000.0238.14
4.3.40.0000.0238.14
4.3.30.0000.0138.14
4.3.20.0000.0138.14
4.3.10.0000.0238.14
4.3.00.0030.0138.14

preferences:
46.04 ms | 400 KiB | 5 Q