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("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.40.0090.00918.93
8.3.30.0030.01218.78
8.3.20.0080.00021.91
8.3.10.0050.00321.85
8.3.00.0060.00317.93
8.2.170.0090.00622.96
8.2.160.0070.00721.02
8.2.150.0090.00924.18
8.2.140.0000.00924.66
8.2.130.0070.00022.25
8.2.120.0080.00026.35
8.2.110.0000.01022.04
8.2.100.0070.00417.84
8.2.90.0080.00019.19
8.2.80.0040.00417.97
8.2.70.0050.00317.75
8.2.60.0050.00518.04
8.2.50.0080.00018.10
8.2.40.0040.00420.55
8.2.30.0040.00419.23
8.2.20.0040.00418.03
8.2.10.0030.00518.08
8.2.00.0040.00418.14
8.1.270.0030.00522.19
8.1.260.0030.00526.35
8.1.250.0050.00228.09
8.1.240.0060.00323.92
8.1.230.0040.00823.89
8.1.220.0030.00517.79
8.1.210.0040.00418.77
8.1.200.0040.00417.35
8.1.190.0000.00817.51
8.1.180.0000.00718.10
8.1.170.0050.00318.61
8.1.160.0070.00018.92
8.1.150.0050.00320.08
8.1.140.0000.00719.67
8.1.130.0030.00318.93
8.1.120.0000.00717.51
8.1.110.0000.00817.44
8.1.100.0040.00417.45
8.1.90.0040.00417.47
8.1.80.0020.00517.50
8.1.70.0070.00017.51
8.1.60.0000.00817.52
8.1.50.0050.00317.57
8.1.40.0040.00417.48
8.1.30.0070.00017.64
8.1.20.0040.00417.62
8.1.10.0040.00417.65
8.1.00.0000.00717.51
8.0.300.0040.00418.77
8.0.290.0070.00016.75
8.0.280.0070.00018.49
8.0.270.0000.00817.25
8.0.260.0070.00016.82
8.0.250.0060.00017.10
8.0.240.0000.00816.93
8.0.230.0070.00017.05
8.0.220.0000.00716.96
8.0.210.0000.00816.98
8.0.200.0030.00316.92
8.0.190.0030.00617.06
8.0.180.0040.00416.95
8.0.170.0040.00417.05
8.0.160.0000.00716.95
8.0.150.0000.00817.00
8.0.140.0030.00316.91
8.0.130.0000.00613.34
8.0.120.0000.00716.96
8.0.110.0030.00517.05
8.0.100.0000.00717.00
8.0.90.0000.00817.04
8.0.80.0030.01216.90
8.0.70.0050.00316.90
8.0.60.0040.00417.03
8.0.50.0040.00416.78
8.0.30.0120.00617.08
8.0.20.0100.00917.40
8.0.10.0000.00717.10
8.0.00.0070.01016.80
7.4.330.0030.00315.55
7.4.320.0030.00316.68
7.4.300.0000.00616.64
7.4.290.0030.00316.61
7.4.280.0070.00016.66
7.4.270.0030.00316.45
7.4.260.0060.00013.26
7.4.250.0040.00316.50
7.4.240.0030.00316.49
7.4.230.0050.00316.64
7.4.220.0070.01716.69
7.4.210.0180.00316.61
7.4.200.0000.00716.66
7.4.160.0070.00816.65
7.4.150.0120.00617.40
7.4.140.0130.00417.86
7.4.130.0100.01016.48
7.4.120.0090.00816.63
7.4.110.0100.01316.43
7.4.100.0100.00716.49
7.4.90.0080.00816.50
7.4.80.0170.00319.39
7.4.70.0100.00716.57
7.4.60.0100.00716.74
7.4.50.0080.00516.58
7.4.40.0060.01016.61
7.4.30.0030.01216.50
7.4.00.0030.01415.01
7.3.330.0040.00413.15
7.3.320.0030.00313.09
7.3.310.0030.00616.49
7.3.300.0070.00016.45
7.3.290.0090.00916.34
7.3.280.0070.00816.34
7.3.270.0150.00317.40
7.3.260.0130.00616.42
7.3.250.0120.00716.53
7.3.240.0070.01616.40
7.3.230.0100.01316.30
7.3.210.0100.01016.59
7.3.200.0090.01216.57
7.3.190.0100.00716.38
7.3.180.0120.00416.45
7.3.170.0000.01716.48
7.3.160.0080.00816.55
7.3.120.0070.01114.91
7.3.110.0070.01314.58
7.3.100.0070.00715.07
7.3.90.0060.00914.78
7.3.80.0100.00715.20
7.3.70.0040.01114.78
7.3.60.0090.00614.72
7.3.50.0060.01014.96
7.3.40.0030.00714.70
7.3.30.0060.00914.94
7.3.20.0030.00616.54
7.3.10.0080.00816.55
7.3.00.0090.00816.57
7.2.330.0110.00616.70
7.2.320.0100.00716.54
7.2.310.0120.00816.57
7.2.300.0070.01016.77
7.2.290.0090.00616.87
7.2.250.0110.00715.23
7.2.240.0070.01315.24
7.2.230.0060.00615.07
7.2.220.0060.00914.57
7.2.210.0060.01114.75
7.2.200.0090.00615.09
7.2.190.0030.01215.22
7.2.180.0030.00714.93
7.2.170.0120.00415.07
7.2.130.0080.01116.55
7.2.120.0100.00516.46
7.2.110.0150.00316.52
7.2.100.0120.00716.72
7.2.90.0080.01216.56
7.2.80.0110.00516.67
7.2.70.0090.00916.70
7.2.60.0120.00416.77
7.2.50.0140.01016.68
7.2.40.0080.00816.58
7.2.30.0140.00316.85
7.2.20.0090.01116.64
7.2.10.0130.00616.53
7.2.00.0090.00517.49
7.1.330.0060.00915.71
7.1.320.0030.01215.92
7.1.310.0100.00315.97
7.1.300.0070.00715.71
7.1.290.0040.01115.95
7.1.280.0000.01215.60
7.1.270.0000.00915.75
7.1.260.0080.00415.84
7.1.250.0090.00815.34
7.1.200.0090.00616.02
7.1.70.0030.00617.09
7.1.60.0100.00617.26
7.1.50.0060.00617.05
7.1.40.0070.00316.70
7.1.30.0040.00716.69
7.1.20.0000.01316.69
7.1.10.0030.01316.81
7.1.00.0000.00816.61
7.0.200.0100.00016.62
7.0.190.0040.00416.64
7.0.180.0000.00816.49
7.0.170.0040.00416.40
7.0.160.0000.01016.36
7.0.150.0040.00416.22
7.0.140.0000.00816.52
7.0.130.0000.00816.86
7.0.120.0080.00416.46
7.0.110.0030.00716.50
7.0.100.0060.00616.21
7.0.90.0030.00616.48
7.0.80.0000.00816.72
7.0.70.0000.01016.38
7.0.60.0040.00416.27
7.0.50.0000.00816.43
7.0.40.0040.00715.08
7.0.30.0000.00715.08
7.0.20.0000.01115.08
7.0.10.0000.01415.08
7.0.00.0050.00215.08

preferences:
58.83 ms | 400 KiB | 5 Q