3v4l.org

run code in 300+ PHP versions simultaneously
<?php // API access key from Google API's Console define( 'API_ACCESS_KEY', ' AIzaSyAxkph8XmQAwi8gB1d91AsgbZFm_-oeg_M' ); $registrationId = array("APA91bEi9r3S03HuEqOSvR2WtbmnJwphbnnmxXJ2vMopN7IXoercnDUeldCvNubvYE7IH-ffJFVjr-fsBJQ8x_RM-rC4eiEYedWI4G82qf1rRA7G1CRG5Rw"); // 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, 'largeIcon' => 'large_icon', 'smallIcon' => 'small_icon' ); $fields = array ( 'registration_ids' => $registrationId, 'score' => $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.0110.00716.87
8.3.50.0120.00822.11
8.3.40.0040.01118.67
8.3.30.0100.00318.63
8.3.20.0070.00020.35
8.3.10.0050.00323.48
8.3.00.0040.00423.41
8.2.180.0170.00016.75
8.2.170.0130.00622.96
8.2.160.0080.00821.96
8.2.150.0060.00324.18
8.2.140.0040.00424.66
8.2.130.0000.00820.78
8.2.120.0040.00426.35
8.2.110.0140.00422.25
8.2.100.0070.00417.97
8.2.90.0050.00318.09
8.2.80.0080.00018.22
8.2.70.0040.00418.05
8.2.60.0040.00418.05
8.2.50.0080.00018.10
8.2.40.0080.00020.44
8.2.30.0070.00019.58
8.2.20.0050.00217.88
8.2.10.0040.00418.08
8.2.00.0000.00718.19
8.1.280.0040.01125.92
8.1.270.0050.00322.09
8.1.260.0080.00028.09
8.1.250.0040.00428.09
8.1.240.0080.00321.91
8.1.230.0040.00820.91
8.1.220.0040.00417.74
8.1.210.0090.00020.38
8.1.200.0000.00917.47
8.1.190.0030.00517.23
8.1.180.0090.00018.10
8.1.170.0030.00618.51
8.1.160.0000.00722.17
8.1.150.0050.00218.88
8.1.140.0000.00919.61
8.1.130.0030.00317.63
8.1.120.0040.00317.52
8.1.110.0040.00417.50
8.1.100.0030.00517.54
8.1.90.0040.00417.38
8.1.80.0040.00417.54
8.1.70.0070.00017.45
8.1.60.0040.00417.53
8.1.50.0050.00317.55
8.1.40.0000.01017.58
8.1.30.0040.00417.70
8.1.20.0020.00517.66
8.1.10.0000.00817.49
8.1.00.0060.00317.50
8.0.300.0000.00719.91
8.0.290.0000.00716.75
8.0.280.0070.00018.52
8.0.270.0030.00317.16
8.0.260.0000.00617.21
8.0.250.0000.00717.08
8.0.240.0000.00717.00
8.0.230.0070.00017.01
8.0.220.0060.00317.00
8.0.210.0040.00416.95
8.0.200.0030.00316.93
8.0.190.0050.00317.06
8.0.180.0070.00016.99
8.0.170.0000.00817.01
8.0.160.0050.00316.97
8.0.150.0050.00316.93
8.0.140.0000.00716.98
8.0.130.0000.00613.39
8.0.120.0040.00416.99
8.0.110.0000.00716.93
8.0.100.0050.00316.96
8.0.90.0040.00416.98
8.0.80.0060.01217.01
8.0.70.0040.00416.98
8.0.60.0070.00016.97
8.0.50.0050.00316.93
8.0.30.0070.01117.23
8.0.20.0100.01317.40
8.0.10.0000.00716.92
8.0.00.0090.00716.77
7.4.330.0050.00016.67
7.4.320.0060.00016.55
7.4.300.0000.00616.61
7.4.290.0030.00316.63
7.4.280.0000.00816.69
7.4.270.0030.00316.58
7.4.260.0050.00216.41
7.4.250.0000.00816.60
7.4.240.0030.00316.43
7.4.230.0000.00716.35
7.4.220.0090.00916.57
7.4.210.0060.00916.63
7.4.200.0040.00416.46
7.4.160.0090.00616.52
7.4.150.0140.01117.40
7.4.140.0120.00917.86
7.4.130.0090.00816.60
7.4.120.0100.00816.46
7.4.110.0070.01016.46
7.4.100.0060.01116.57
7.4.90.0030.01716.51
7.4.80.0030.01319.39
7.4.70.0160.00016.61
7.4.60.0060.01116.77
7.4.50.0080.00816.43
7.4.40.0090.01316.66
7.4.30.0070.01716.64
7.4.00.0110.00414.73
7.3.330.0070.00013.24
7.3.320.0030.00313.20
7.3.310.0000.00716.31
7.3.300.0070.00016.20
7.3.290.0000.00716.37
7.3.280.0130.00716.40
7.3.270.0140.00317.40
7.3.260.0060.01016.41
7.3.250.0110.00716.45
7.3.240.0070.01116.48
7.3.230.0060.01216.39
7.3.210.0100.00716.27
7.3.200.0130.00719.39
7.3.190.0130.00316.67
7.3.180.0100.00716.29
7.3.170.0100.00716.36
7.3.160.0060.01016.41
7.3.10.0030.01016.74
7.3.00.0100.00316.73
7.2.330.0100.00716.62
7.2.320.0230.00416.70
7.2.310.0030.01316.81
7.2.300.0070.01116.88
7.2.290.0100.00616.71
7.2.130.0080.00816.77
7.2.120.0060.00316.94
7.2.110.0090.00616.77
7.2.100.0080.01116.63
7.2.90.0030.01316.53
7.2.80.0060.00617.03
7.2.70.0070.01017.08
7.2.60.0040.00916.73
7.2.50.0070.00316.89
7.2.40.0060.00817.03
7.2.30.0040.01416.98
7.2.20.0060.00616.89
7.2.10.0100.00717.12
7.2.00.0050.00618.03
7.1.250.0060.00615.63
7.1.200.0100.00315.68
7.1.100.0000.01318.26
7.1.70.0050.00217.37
7.1.60.0100.01319.40
7.1.50.0040.00916.95
7.1.00.0070.06722.28
7.0.200.0040.00716.47
7.0.90.0600.07319.87
7.0.80.0570.07719.93
7.0.70.0570.08320.02
7.0.60.0470.04320.01
7.0.50.0030.08020.41
7.0.40.0100.07720.13
7.0.30.0130.04319.99
7.0.20.0030.04720.04
7.0.10.0070.05320.04
7.0.00.0070.04720.12
5.6.280.0030.03021.11
5.6.240.0100.05020.70
5.6.230.0130.06320.57
5.6.220.0170.07320.74
5.6.210.0100.07320.78
5.6.200.0070.09021.06
5.6.190.0100.08321.14
5.6.180.0000.06021.11
5.6.170.0130.07721.09
5.6.160.0200.06721.12
5.6.150.0100.07321.01
5.6.140.0070.08320.97
5.6.130.0030.07321.05
5.6.120.0100.08321.11
5.6.110.0030.08321.11
5.6.100.0130.04720.99
5.6.90.0100.08021.13
5.6.80.0130.07320.47
5.6.70.0100.08020.32
5.6.60.0070.07320.40
5.6.50.0000.08720.29
5.6.40.0000.05720.46
5.6.30.0100.07020.43
5.6.20.0070.05320.40
5.6.10.0070.06020.50
5.6.00.0170.05320.45
5.5.380.0070.07320.55
5.5.370.0100.08020.57
5.5.360.0130.07320.49
5.5.350.0000.05020.43
5.5.340.0070.09020.93
5.5.330.0170.07320.94
5.5.320.0030.08320.84
5.5.310.0100.05020.84
5.5.300.0070.04320.64
5.5.290.0100.07720.64
5.5.280.0070.09020.83
5.5.270.0100.08020.73
5.5.260.0170.07320.93
5.5.250.0030.08020.55
5.5.240.0070.07020.25
5.5.230.0070.08320.27
5.5.220.0100.04720.28
5.5.210.0070.07020.14
5.5.200.0130.07320.14
5.5.190.0100.07720.13
5.5.180.0100.07320.25
5.5.160.0030.06720.27
5.5.150.0130.06320.21
5.5.140.0100.07720.27
5.5.130.0130.07720.28
5.5.120.0100.07020.09
5.5.110.0170.05020.17
5.5.100.0070.08319.96
5.5.90.0130.07720.16
5.5.80.0030.07320.07
5.5.70.0100.07720.06
5.5.60.0000.05320.11
5.5.50.0070.07020.09
5.5.40.0130.07020.14
5.5.30.0000.05019.96
5.5.20.0030.08019.93
5.5.10.0070.05019.98
5.5.00.0100.07020.12

preferences:
48.46 ms | 401 KiB | 5 Q