3v4l.org

run code in 300+ PHP versions simultaneously
<?php // API access key from Google API's Console define( 'API_ACCESS_KEY', 'AIzaSyDvFHbBo8sOBY7Dl6PxeDGmTcUreKHAgLw' ); $registrationIds = array("APA91bGtsrrwp9V4tKTFJus-cDtEHm5aQzsU0LA3byGnPLnWv4rGWDvrlxf9z07lhbNuLSl0smtc1VBaNhJS59eFCyuCfggqEk1_mxhZjFFlwCGxeaiiXK2m1Py-53FqenYzlbyzVLDlKHbbt0mtB8bizfE_sByrUg " ); // 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.0130.00916.98
8.3.50.0150.00321.27
8.3.40.0150.00618.92
8.3.30.0100.01019.04
8.3.20.0050.00220.39
8.3.10.0050.00323.65
8.3.00.0040.01519.50
8.2.180.0060.01318.54
8.2.170.0090.00622.96
8.2.160.0170.00320.44
8.2.150.0030.00624.18
8.2.140.0080.00024.66
8.2.130.0070.00726.16
8.2.120.0060.00322.05
8.2.110.0080.00022.16
8.2.100.0090.00317.84
8.2.90.0090.00019.18
8.2.80.0090.00018.05
8.2.70.0060.00317.63
8.2.60.0040.00418.05
8.2.50.0040.00418.07
8.2.40.0040.00419.95
8.2.30.0000.00719.79
8.2.20.0080.00017.81
8.2.10.0040.00418.19
8.2.00.0030.00717.77
8.1.280.0100.00725.92
8.1.270.0030.00523.91
8.1.260.0080.00026.35
8.1.250.0080.00828.09
8.1.240.0030.00723.72
8.1.230.0120.00019.01
8.1.220.0050.00317.74
8.1.210.0000.00818.77
8.1.200.0030.00617.35
8.1.190.0040.00417.65
8.1.180.0080.00318.10
8.1.170.0030.00620.29
8.1.160.0000.00722.00
8.1.150.0000.00818.66
8.1.140.0000.00717.47
8.1.130.0070.00017.85
8.1.120.0040.00417.40
8.1.110.0000.00917.43
8.1.100.0030.00617.36
8.1.90.0050.00217.48
8.1.80.0030.00717.52
8.1.70.0030.00317.44
8.1.60.0050.00217.49
8.1.50.0040.00417.52
8.1.40.0040.00417.39
8.1.30.0040.00417.52
8.1.20.0040.00417.57
8.1.10.0060.00317.56
8.1.00.0040.00417.45
8.0.300.0040.00419.09
8.0.290.0000.00817.05
8.0.280.0030.00318.47
8.0.270.0030.00317.20
8.0.260.0030.00317.28
8.0.250.0030.00317.06
8.0.240.0030.00317.01
8.0.230.0000.00717.04
8.0.220.0000.00716.97
8.0.210.0000.00716.91
8.0.200.0040.00417.08
8.0.190.0040.00417.05
8.0.180.0040.00416.98
8.0.170.0040.00416.98
8.0.160.0000.00717.11
8.0.150.0000.00716.94
8.0.140.0000.00716.82
8.0.130.0060.00013.33
8.0.120.0040.00416.96
8.0.110.0040.00416.95
8.0.100.0050.00216.87
8.0.90.0050.00316.88
8.0.80.0030.01716.96
8.0.70.0080.00017.11
8.0.60.0070.00017.09
8.0.50.0040.00417.04
8.0.30.0080.01117.11
8.0.20.0110.01117.40
8.0.10.0050.00217.16
8.0.00.0100.01016.74
7.4.330.0000.00515.09
7.4.320.0030.00316.68
7.4.300.0030.00316.62
7.4.290.0030.00316.56
7.4.280.0000.00716.61
7.4.270.0000.00716.61
7.4.260.0070.00016.54
7.4.250.0080.00016.64
7.4.240.0040.00316.48
7.4.230.0050.00216.66
7.4.220.0070.01016.64
7.4.210.0080.00516.66
7.4.200.0070.00016.73
7.4.190.0030.00316.60
7.4.160.0100.01016.57
7.4.150.0070.01117.40
7.4.140.0100.00817.86
7.4.130.0080.01216.58
7.4.120.0100.00616.55
7.4.110.0090.00916.57
7.4.100.0100.00716.68
7.4.90.0030.01316.49
7.4.80.0070.01119.39
7.4.70.0060.01016.45
7.4.60.0120.00616.57
7.4.50.0050.00016.52
7.4.40.0030.01022.77
7.4.30.0030.01316.61
7.4.10.0130.00614.96
7.4.00.0080.00814.96
7.3.330.0020.00213.11
7.3.320.0000.00513.20
7.3.310.0030.00316.18
7.3.300.0030.00316.40
7.3.290.0070.01016.40
7.3.280.0140.00316.38
7.3.270.0120.00617.40
7.3.260.0060.01016.29
7.3.250.0170.00616.41
7.3.240.0030.01216.29
7.3.230.0140.00316.45
7.3.210.0110.00616.50
7.3.200.0070.01419.39
7.3.190.0090.00916.41
7.3.180.0100.00716.68
7.3.170.0060.01016.63
7.3.160.0090.00616.64
7.3.130.0040.01414.88
7.3.120.0050.01214.90
7.3.110.0090.00915.02
7.3.100.0030.01215.03
7.3.90.0030.01415.10
7.3.80.0070.00315.01
7.3.70.0030.01314.69
7.3.60.0030.01014.69
7.3.50.0030.01614.87
7.3.40.0040.00714.85
7.3.30.0090.00314.66
7.3.20.0000.01016.79
7.3.10.0080.01016.64
7.3.00.0100.00516.67
7.2.330.0030.01516.84
7.2.320.0080.00816.75
7.2.310.0170.00016.72
7.2.300.0060.00916.88
7.2.290.0090.00916.82
7.2.260.0070.01115.14
7.2.250.0030.01415.39
7.2.240.0060.00915.27
7.2.230.0050.00514.98
7.2.220.0070.01015.26
7.2.210.0060.00314.98
7.2.200.0060.00614.90
7.2.190.0030.01315.11
7.2.180.0070.00314.85
7.2.170.0140.00014.82
7.2.160.0070.00314.86
7.2.150.0060.00916.97
7.2.140.0110.00716.89
7.2.130.0080.00816.71
7.2.120.0060.00716.94
7.2.110.0070.00416.72
7.2.100.0020.00916.80
7.2.90.0090.00416.78
7.2.80.0060.00816.85
7.2.70.0020.01116.86
7.2.60.0070.00516.78
7.2.50.0040.00816.70
7.2.40.0080.00716.85
7.2.30.0070.00816.75
7.2.20.0060.00816.79
7.2.10.0040.01116.72
7.2.00.0070.00417.42
7.1.330.0090.00615.73
7.1.320.0030.01015.45
7.1.310.0000.01515.95
7.1.300.0100.00315.87
7.1.290.0000.00815.53
7.1.280.0030.01015.37
7.1.270.0060.00615.66
7.1.260.0090.00615.89
7.1.250.0060.00715.68
7.1.240.0070.00415.79
7.1.230.0090.00015.51
7.1.220.0040.00715.98
7.1.210.0060.00315.56
7.1.200.0070.00715.84
7.1.190.0000.01215.70
7.1.180.0000.00915.90
7.1.170.0030.00715.77
7.1.160.0040.01515.61
7.1.150.0070.00715.88
7.1.140.0090.00615.80
7.1.130.0040.01115.88
7.1.120.0100.00715.78
7.1.110.0060.00915.82
7.1.100.0090.00516.74
7.1.90.0120.00615.72
7.1.80.0090.00915.85
7.1.70.0050.00616.43
7.1.60.0070.01317.69
7.1.50.0110.01425.14
7.1.40.0030.00615.61
7.1.30.0040.00815.80
7.1.20.0040.01115.83
7.1.10.0040.00815.81
7.1.00.0050.04319.19
7.0.330.0070.00815.40
7.0.320.0090.00315.36
7.0.310.0060.00315.53
7.0.300.0070.00315.65
7.0.290.0070.01115.43
7.0.280.0060.00315.48
7.0.270.0030.00915.38
7.0.260.0070.00815.19
7.0.250.0050.00515.41
7.0.240.0070.01015.45
7.0.230.0070.00715.38
7.0.220.0000.01015.48
7.0.210.0030.00715.34
7.0.200.0040.00716.16
7.0.190.0000.00815.50
7.0.180.0000.01015.30
7.0.170.0050.00815.40
7.0.160.0030.00815.49
7.0.150.0070.00715.46
7.0.140.0040.04018.77
7.0.130.0030.01315.23
7.0.120.0030.00615.54
7.0.110.0070.00315.21
7.0.100.0090.00315.34
7.0.90.0100.03617.68
7.0.80.0270.02317.72
7.0.70.0240.04017.81
7.0.60.0320.02517.65
7.0.50.0320.04717.97
7.0.40.0060.04516.95
7.0.30.0020.04416.97
7.0.20.0020.02916.98
7.0.10.0080.02916.97
7.0.00.0030.04716.94
5.6.400.0060.00914.00
5.6.390.0040.00814.12
5.6.380.0040.01114.63
5.6.370.0000.00914.41
5.6.360.0070.01014.63
5.6.350.0100.01014.30
5.6.340.0100.00314.51
5.6.330.0080.00314.38
5.6.320.0030.01214.52
5.6.310.0030.01014.53
5.6.300.0030.00614.62
5.6.290.0060.00614.05
5.6.280.0020.04317.75
5.6.270.0000.01214.40
5.6.260.0030.00914.18
5.6.250.0030.00514.34
5.6.240.0050.04417.55
5.6.230.0070.04517.42
5.6.220.0050.02817.59
5.6.210.0070.02717.44
5.6.200.0020.03717.79
5.6.190.0040.04517.71
5.6.180.0100.03317.73
5.6.170.0060.04817.67
5.6.160.0020.04017.60
5.6.150.0060.04617.74
5.6.140.0030.03017.61
5.6.130.0090.04817.60
5.6.120.0110.03517.70
5.6.110.0070.04017.75
5.6.100.0090.04217.57
5.6.90.0130.04317.77
5.6.80.0060.04017.29
5.6.70.0070.04217.32
5.6.60.0070.03017.31
5.6.50.0110.02817.39
5.6.40.0100.03617.27
5.6.30.0110.03717.28
5.6.20.0050.04717.29
5.6.10.0070.04117.19
5.6.00.0070.04217.33
5.5.380.0020.03817.35
5.5.370.0070.02717.44
5.5.360.0050.04017.30
5.5.350.0080.04517.46
5.5.340.0030.03917.48
5.5.330.0100.03717.72
5.5.320.0060.04217.46
5.5.310.0120.03717.61
5.5.300.0040.04517.66
5.5.290.0090.03217.39
5.5.280.0100.04517.39
5.5.270.0100.04817.48
5.5.260.0120.03917.52
5.5.250.0080.03717.35
5.5.240.0030.04817.11
5.5.230.0040.02917.13
5.5.220.0070.04517.31
5.5.210.0090.03017.21
5.5.200.0030.04617.27
5.5.190.0070.04417.19
5.5.180.0060.03117.18
5.5.170.0140.00314.32
5.5.160.0070.03417.21
5.5.150.0060.03517.28
5.5.140.0090.04117.30
5.5.130.0060.02417.18
5.5.120.0050.02417.21
5.5.110.0110.02017.31
5.5.100.0070.04217.13
5.5.90.0070.02217.23
5.5.80.0120.02017.06
5.5.70.0030.02717.16
5.5.60.0020.02117.06
5.5.50.0070.01816.94
5.5.40.0050.02317.18
5.5.30.0070.03517.16
5.5.20.0020.02417.20
5.5.10.0070.02816.96
5.5.00.0020.03017.08
5.4.450.0070.04416.54
5.4.440.0050.03716.63
5.4.430.0060.03816.49
5.4.420.0030.03216.64
5.4.410.0060.02616.48
5.4.400.0050.04016.44
5.4.390.0050.02216.48
5.4.380.0070.02216.41
5.4.370.0030.04016.33
5.4.360.0020.04516.41
5.4.350.0030.04216.32
5.4.340.0100.03716.46
5.4.330.0110.00413.85
5.4.320.0020.04416.49
5.4.310.0080.03616.34
5.4.300.0030.04416.40
5.4.290.0100.01816.38
5.4.280.0070.03516.44
5.4.270.0070.03516.41
5.4.260.0030.02816.31
5.4.250.0030.02516.45
5.4.240.0060.02316.49
5.4.230.0050.02516.48
5.4.220.0030.02316.44
5.4.210.0060.01816.45
5.4.200.0080.03216.44
5.4.190.0070.03816.53
5.4.180.0060.01516.37
5.4.170.0020.02216.45
5.4.160.0060.04016.43
5.4.150.0070.03716.44
5.4.140.0060.02315.04
5.4.130.0060.02115.08
5.4.120.0080.01815.08
5.4.110.0050.02115.15
5.4.100.0030.02815.06
5.4.90.0020.03115.11
5.4.80.0050.01915.13
5.4.70.0050.03015.15
5.4.60.0050.03715.04
5.4.50.0060.02015.11
5.4.40.0000.02415.09
5.4.30.0030.03715.02
5.4.20.0020.02215.11
5.4.10.0090.01715.07
5.4.00.0030.02114.82
5.3.290.0090.03314.24
5.3.280.0060.02114.16
5.3.270.0060.01814.16
5.3.260.0050.03514.23
5.3.250.0070.03614.17
5.3.240.0020.02214.22
5.3.230.0050.04014.20
5.3.220.0030.03314.21
5.3.210.0060.02314.14
5.3.200.0080.01814.21
5.3.190.0020.02714.14
5.3.180.0070.01814.20
5.3.170.0080.02514.20
5.3.160.0060.03014.19
5.3.150.0060.02814.19
5.3.140.0000.03614.20
5.3.130.0030.02414.13
5.3.120.0020.03214.13
5.3.110.0040.02114.20
5.3.100.0040.02513.95
5.3.90.0030.02313.91
5.3.80.0010.02113.92
5.3.70.0000.02213.91
5.3.60.0040.01913.82
5.3.50.0030.02813.88
5.3.40.0030.02313.90
5.3.30.0020.02213.87
5.3.20.0020.02713.76
5.3.10.0080.01313.73
5.3.00.0020.02513.63
5.2.170.0030.03311.20
5.2.160.0000.03711.22
5.2.150.0000.03011.16
5.2.140.0070.02710.98
5.2.130.0030.05711.07
5.2.120.0000.03310.98
5.2.110.0000.03010.95
5.2.100.0030.03011.13
5.2.90.0000.03011.13
5.2.80.0000.02710.92
5.2.70.0030.04311.10
5.2.60.0000.03311.06
5.2.50.0030.02710.85
5.2.40.0030.02711.03
5.2.30.0000.03011.05
5.2.20.0030.02711.01
5.2.10.0100.02310.81
5.2.00.0030.04010.79
5.1.60.0000.02710.00
5.1.50.0000.02710.02
5.1.40.0030.03010.04
5.1.30.0100.02010.29
5.1.20.0000.02710.31
5.1.10.0000.0279.91
5.1.00.0030.03710.10
5.0.50.0030.0408.58
5.0.40.0030.0438.45
5.0.30.0000.0638.25
5.0.20.0070.0408.24
5.0.10.0000.0478.23
5.0.00.0030.0678.05
4.4.90.0000.0207.13
4.4.80.0030.0307.13
4.4.70.0000.0207.13
4.4.60.0030.0137.13
4.4.50.0030.0137.13
4.4.40.0000.0307.13
4.4.30.0000.0177.13
4.4.20.0000.0177.13
4.4.10.0000.0337.13
4.4.00.0000.0437.13
4.3.110.0030.0337.13
4.3.100.0070.0137.13
4.3.90.0030.0277.13
4.3.80.0000.0507.13
4.3.70.0100.0237.13
4.3.60.0070.0307.13
4.3.50.0070.0307.13
4.3.40.0030.0507.13
4.3.30.0100.0277.13
4.3.20.0000.0277.13
4.3.10.0030.0337.13
4.3.00.0030.0307.13

preferences:
40.42 ms | 401 KiB | 5 Q