3v4l.org

run code in 300+ PHP versions simultaneously
<?php // API access key from Google API's Console define( 'API_ACCESS_KEY', 'AIzaSyCtCWRAVkSplT1ZV7Ww4lOeEPvliL1rAkI' ); $registrationIds = array("ebKET0O4_X4:APA91bEnDl3hZuEs70j0irk24t7DZwP2vXaZqLutgc6TmPyPkeqGK9meJ_uIryub9242B31zFvEdjLbpKcz16g8wxv4sxS0v0HlyXGX_dnCJavczMdPXjEci65c7jE4ZQRcROPSS5hbU"); // 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' => $registrationIds, 'data' => $msg ); $headers = array ( 'Authorization: key=' . API_ACCESS_KEY, 'Content-Type: application/json' ); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_HEADER, 0); $data = curl_exec($ch); curl_close($ch); 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.63
8.3.50.0100.01016.36
8.3.40.0080.01219.02
8.3.30.0130.00318.79
8.3.20.0070.00721.90
8.3.10.0080.00021.90
8.3.00.0040.00417.80
8.2.180.0180.00318.52
8.2.170.0110.00422.96
8.2.160.0090.00521.07
8.2.150.0060.01024.18
8.2.140.0090.00024.66
8.2.130.0050.00322.25
8.2.120.0050.00326.35
8.2.110.0110.00022.08
8.2.100.0090.00318.03
8.2.90.0030.00519.25
8.2.80.0060.00317.97
8.2.70.0050.00317.88
8.2.60.0100.00017.80
8.2.50.0030.00618.10
8.2.40.0070.00020.55
8.2.30.0080.00019.22
8.2.20.0070.00018.06
8.2.10.0040.00418.16
8.2.00.0050.00218.06
8.1.280.0090.00625.92
8.1.270.0000.00822.14
8.1.260.0000.00926.35
8.1.250.0040.00428.09
8.1.240.0080.00419.20
8.1.230.0040.00719.04
8.1.220.0000.00917.74
8.1.210.0000.00818.77
8.1.200.0000.01017.36
8.1.190.0050.00317.63
8.1.180.0040.00418.10
8.1.170.0080.00018.59
8.1.160.0050.00318.96
8.1.150.0040.00420.16
8.1.140.0000.00819.71
8.1.130.0070.00018.91
8.1.120.0000.00817.52
8.1.110.0080.00017.38
8.1.100.0030.00517.39
8.1.90.0030.00617.41
8.1.80.0000.00717.54
8.1.70.0070.00017.37
8.1.60.0040.00417.45
8.1.50.0050.00317.57
8.1.40.0050.00317.55
8.1.30.0000.00817.63
8.1.20.0040.00417.51
8.1.10.0000.00817.61
8.1.00.0040.00417.43
8.0.300.0080.00020.04
8.0.290.0040.00416.63
8.0.280.0040.00418.48
8.0.270.0030.00317.24
8.0.260.0030.00316.84
8.0.250.0040.00416.96
8.0.240.0040.00417.09
8.0.230.0030.00317.01
8.0.220.0030.00516.92
8.0.210.0070.00016.87
8.0.200.0000.00616.88
8.0.190.0060.00317.02
8.0.180.0000.00816.98
8.0.170.0070.00017.06
8.0.160.0040.00416.92
8.0.150.0000.00716.84
8.0.140.0050.00316.86
8.0.130.0000.00613.46
8.0.120.0040.00416.97
8.0.110.0000.00716.85
8.0.100.0000.00816.93
8.0.90.0030.00516.84
8.0.80.0120.00916.92
8.0.70.0040.00417.04
8.0.60.0040.00416.93
8.0.50.0020.00517.05
8.0.30.0090.00817.23
8.0.20.0110.00817.40
8.0.10.0040.00417.10
8.0.00.0060.01316.78
7.4.330.0000.00615.55
7.4.320.0030.00316.67
7.4.300.0030.00316.43
7.4.290.0030.00316.70
7.4.280.0080.00016.48
7.4.270.0030.00316.55
7.4.260.0030.00313.21
7.4.250.0040.00416.61
7.4.240.0040.00416.53
7.4.230.0070.00016.70
7.4.220.0120.00416.61
7.4.210.0060.01016.68
7.4.200.0000.00716.40
7.4.160.0110.00816.72
7.4.150.0040.01417.40
7.4.140.0100.00817.86
7.4.130.0170.00716.72
7.4.120.0140.00716.64
7.4.110.0140.00416.61
7.4.100.0150.00616.48
7.4.90.0140.00316.61
7.4.80.0070.01519.39
7.4.70.0030.01416.44
7.4.60.0120.00616.66
7.4.50.0060.00816.32
7.4.40.0110.00816.50
7.4.30.0140.00716.52
7.4.00.0100.00715.30
7.3.330.0060.00013.04
7.3.320.0030.00313.34
7.3.310.0000.00716.49
7.3.300.0000.00716.25
7.3.290.0060.00816.32
7.3.280.0090.00816.34
7.3.270.0140.00317.40
7.3.260.0100.00816.49
7.3.250.0100.00816.50
7.3.240.0060.01116.51
7.3.230.0140.00316.58
7.3.210.0110.00616.60
7.3.200.0120.00616.37
7.3.190.0130.00316.67
7.3.180.0030.01316.47
7.3.170.0090.00616.23
7.3.160.0120.00316.26
7.2.330.0130.00316.74
7.2.320.0030.01516.63
7.2.310.0060.01616.62
7.2.300.0170.00016.64
7.2.290.0140.00816.79
7.2.80.0070.00716.49
7.2.60.0070.00716.98
7.2.50.0360.00716.62
7.2.00.0060.00619.01
7.1.200.0090.00315.53
7.1.70.0000.00717.09
7.1.60.0430.01333.25
7.1.50.0670.01033.11
7.1.40.0530.01332.51
7.1.30.0530.01032.66
7.1.20.0500.01732.74
7.1.10.0430.01014.87
7.1.00.0370.01314.79
7.0.200.0530.01014.86
7.0.190.0500.01314.94
7.0.180.0400.01314.57
7.0.170.0370.01014.56
7.0.160.0430.01014.41
7.0.150.0470.01314.27
7.0.140.0400.01314.64
7.0.130.0430.01014.67
7.0.120.0400.01014.98
7.0.110.1170.00714.47
7.0.100.0500.01014.45
7.0.90.0630.01714.50
7.0.80.0630.01714.67
7.0.70.0500.00714.54
7.0.60.0670.00714.49
7.0.50.0770.01714.47
7.0.40.0400.01714.88
7.0.30.0530.01014.64
7.0.20.0470.01314.68
7.0.10.0470.01014.78
7.0.00.0430.01014.49

preferences:
47.71 ms | 400 KiB | 5 Q