3v4l.org

run code in 300+ PHP versions simultaneously
<?php // API access key from Google API's Console define( 'API_ACCESS_KEY', 'AIzaSyDZuNwi73S0k8e8fqY3JJuXA7euKYNDTdY' ); $registrationIds = array("l9pfeMfkvZU:APA91bGZIc1dnxSAGy_YmBT8_Cwz3qCkUAMyR8KMP7k3c1kF2CUU7TkB5gLGbMd57svu7ZTdq0ybk1WfnaENEl-Y1W-Ak71QL48TwKAbzlHVk9BmWfPGlWgHHONViFC3w1C2bfkIhBj0"); // prep the bundle $msg = array ( 'message' => 'WWWWWW', '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, 'https://gcm-http.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.0180.00016.75
8.3.50.0190.00318.20
8.3.40.0070.00718.98
8.3.30.0110.00718.45
8.3.20.0050.00320.25
8.3.10.0040.01123.43
8.3.00.0040.00419.25
8.2.180.0160.00316.75
8.2.170.0100.01022.96
8.2.160.0100.00720.47
8.2.150.0120.00624.18
8.2.140.0070.00724.66
8.2.130.0040.00426.16
8.2.120.0050.00219.95
8.2.110.0040.00420.45
8.2.100.0080.00418.16
8.2.90.0060.00319.35
8.2.80.0040.00417.97
8.2.70.0050.00317.63
8.2.60.0040.00418.05
8.2.50.0000.00918.07
8.2.40.0060.00319.32
8.2.30.0040.00420.71
8.2.20.0040.00417.89
8.2.10.0040.00418.14
8.2.00.0040.00418.01
8.1.280.0100.00725.92
8.1.270.0000.01123.84
8.1.260.0080.00026.35
8.1.250.0050.00228.09
8.1.240.0060.00320.84
8.1.230.0070.00417.78
8.1.220.0040.00417.79
8.1.210.0100.00018.77
8.1.200.0060.00317.23
8.1.190.0090.00019.14
8.1.180.0070.00018.10
8.1.170.0090.00018.43
8.1.160.0000.00721.99
8.1.150.0000.00718.91
8.1.140.0000.00819.56
8.1.130.0080.00017.68
8.1.120.0000.00717.39
8.1.110.0000.00717.40
8.1.100.0040.00417.39
8.1.90.0050.00317.53
8.1.80.0060.00317.51
8.1.70.0080.00017.39
8.1.60.0040.00417.44
8.1.50.0040.00417.54
8.1.40.0000.00817.52
8.1.30.0030.00617.69
8.1.20.0040.00417.56
8.1.10.0000.00817.64
8.1.00.0090.00317.44
8.0.300.0000.00718.77
8.0.290.0050.00316.63
8.0.280.0040.00418.41
8.0.270.0030.00317.26
8.0.260.0060.00017.20
8.0.250.0000.00617.11
8.0.240.0000.00716.96
8.0.230.0030.00316.95
8.0.220.0030.00316.96
8.0.210.0030.00317.02
8.0.200.0070.00017.08
8.0.190.0080.00017.12
8.0.180.0040.00416.99
8.0.170.0030.00617.02
8.0.160.0030.00417.07
8.0.150.0040.00416.91
8.0.140.0040.00416.91
8.0.130.0000.00713.40
8.0.120.0030.00516.78
8.0.110.0080.00017.04
8.0.100.0000.00716.87
8.0.90.0070.00016.93
8.0.80.0150.00316.93
8.0.70.0000.00817.01
8.0.60.0050.00317.04
8.0.50.0040.00416.81
8.0.30.0120.00616.96
8.0.20.0150.01417.41
8.0.10.0000.00716.97
8.0.00.0090.00916.79
7.4.330.0000.00516.76
7.4.320.0030.00316.49
7.4.300.0040.00416.53
7.4.290.0030.00316.63
7.4.280.0050.00316.55
7.4.270.0100.00016.64
7.4.260.0030.00316.63
7.4.250.0040.00416.50
7.4.240.0030.00416.54
7.4.230.0000.00716.70
7.4.220.0130.01416.54
7.4.210.0140.00416.56
7.4.200.0000.00716.42
7.4.160.0090.00616.53
7.4.150.0200.02417.40
7.4.140.0140.00917.86
7.4.130.0150.00316.50
7.4.120.0080.00916.54
7.4.110.0040.01516.46
7.4.100.0030.01416.48
7.4.90.0100.00716.55
7.4.80.0070.01019.39
7.4.70.0030.01316.64
7.4.60.0000.01616.44
7.4.50.0070.00716.47
7.4.40.0100.01016.56
7.4.30.0130.01016.55
7.4.10.0070.01114.83
7.4.00.0070.01015.11
7.3.330.0030.00513.23
7.3.320.0030.00313.09
7.3.310.0000.00716.43
7.3.300.0000.00816.36
7.3.290.0070.00016.35
7.3.280.0110.00416.35
7.3.270.0140.00417.40
7.3.260.0080.00816.40
7.3.240.0090.01116.45
7.3.230.0060.01116.41
7.3.210.0070.01016.47
7.3.200.0000.01516.27
7.3.190.0100.01016.59
7.3.180.0130.00316.64
7.3.170.0080.00816.60
7.3.160.0090.00616.36
7.3.130.0040.01515.05
7.3.120.0060.01215.06
7.3.110.0110.00515.00
7.3.100.0030.01015.05
7.3.90.0060.00614.80
7.3.80.0070.00714.85
7.3.70.0000.01314.77
7.3.60.0060.00914.73
7.3.50.0070.00715.02
7.3.40.0030.01214.86
7.3.30.0090.00614.89
7.3.20.0060.01316.59
7.3.10.0110.00616.80
7.3.00.0030.01016.63
7.2.330.0030.01616.44
7.2.320.0200.00016.63
7.2.310.0090.00916.59
7.2.300.0100.00716.53
7.2.290.0040.01416.78
7.2.260.0070.01315.37
7.2.250.0120.00614.87
7.2.240.0030.01015.06
7.2.230.0000.01415.26
7.2.220.0000.01714.92
7.2.210.0030.01014.75
7.2.200.0110.00015.05
7.2.190.0030.01015.16
7.2.180.0070.01015.06
7.2.170.0040.01114.89
7.2.160.0030.01414.85
7.2.150.0070.01316.79
7.2.140.0030.01316.77
7.2.130.0070.00316.64
7.2.120.0040.01516.89
7.2.110.0110.00716.86
7.2.100.0030.00917.01
7.2.90.0030.00916.86
7.2.80.0070.00716.97
7.2.70.0090.00616.71
7.2.60.0120.00716.81
7.2.50.0060.00616.75
7.2.40.0050.00817.12
7.2.30.0030.01017.16
7.2.20.0100.00317.05
7.2.10.0090.00616.84
7.2.00.0090.00518.15
7.1.330.0070.00715.77
7.1.320.0040.01115.81
7.1.310.0030.01015.96
7.1.300.0000.01115.71
7.1.290.0050.00315.59
7.1.280.0110.00015.93
7.1.270.0040.01415.78
7.1.260.0070.00715.82
7.1.250.0070.00715.86
7.1.240.0030.01015.59
7.1.230.0080.00015.74
7.1.220.0070.00715.76
7.1.210.0070.00715.66
7.1.200.0070.00815.86
7.1.190.0040.01115.50
7.1.180.0030.01015.82
7.1.170.0040.00815.53
7.1.160.0060.00915.45
7.1.150.0070.00815.83
7.1.140.0000.00815.53
7.1.130.0040.00815.68
7.1.120.0000.01415.87
7.1.110.0030.01015.85
7.1.100.0030.00617.08
7.1.90.0080.00415.69
7.1.80.0030.00615.87
7.1.70.0020.00916.51
7.1.60.0060.01317.43
7.1.50.0060.01016.53
7.1.40.0040.00815.96
7.1.30.0000.01015.86
7.1.20.0100.00315.68
7.1.10.0080.00815.80
7.1.00.0060.04019.20
7.0.330.0060.00915.39
7.0.320.0040.01115.43
7.0.310.0090.00315.33
7.0.300.0030.01015.50
7.0.290.0040.01215.27
7.0.280.0140.00315.34
7.0.270.0040.01115.21
7.0.260.0060.01015.39
7.0.250.0090.00615.29
7.0.240.0060.00915.39
7.0.230.0000.01115.40
7.0.220.0040.00815.39
7.0.210.0000.01015.44
7.0.200.0020.00915.95
7.0.190.0060.00615.18
7.0.180.0040.00415.53
7.0.170.0140.00015.30
7.0.160.0030.01015.53
7.0.150.0000.01515.25
7.0.140.0030.01015.51
7.0.130.0080.00415.41
7.0.120.0060.00615.54
7.0.110.0040.01115.43
7.0.100.0030.00915.41
7.0.90.0320.04917.77
7.0.80.0300.03317.68
7.0.70.0320.04017.76
7.0.60.0250.03017.76
7.0.50.0300.03418.00
7.0.40.0090.04216.69
7.0.30.0080.04516.77
7.0.20.0120.04016.79
7.0.10.0120.03516.79
7.0.00.0080.04516.79
5.6.400.0030.00514.25
5.6.390.0090.00614.28
5.6.380.0070.00714.55
5.6.370.0030.01014.08
5.6.360.0040.00814.19
5.6.350.0030.01414.38
5.6.340.0090.00314.33
5.6.330.0070.00314.67
5.6.320.0070.01014.45
5.6.310.0000.01714.12
5.6.300.0070.00714.74
5.6.290.0030.01014.33
5.6.280.0030.03717.78
5.6.270.0040.01114.24
5.6.260.0030.01014.29
5.6.250.0040.00414.60
5.6.240.0080.04517.40
5.6.230.0020.03517.63
5.6.220.0020.04817.39
5.6.210.0080.03817.54
5.6.200.0100.04517.66
5.6.190.0100.02517.55
5.6.180.0010.05117.72
5.6.170.0070.04717.60
5.6.160.0050.04517.62
5.6.150.0020.05017.57
5.6.140.0140.03717.56
5.6.130.0030.04017.62
5.6.120.0100.04217.67
5.6.110.0110.04317.63
5.6.100.0100.04017.64
5.6.90.0120.03917.73
5.6.80.0100.04217.39
5.6.70.0080.02817.29
5.6.60.0100.04017.39
5.6.50.0010.03317.28
5.6.40.0090.02217.28
5.6.30.0090.04017.34
5.6.20.0060.02417.50
5.6.10.0020.04017.24
5.6.00.0030.03317.48
5.5.380.0100.03017.25
5.5.370.0050.04517.37
5.5.360.0090.03917.26
5.5.350.0080.03817.17
5.5.340.0100.02317.58
5.5.330.0070.04017.50
5.5.320.0050.04417.63
5.5.310.0050.03217.46
5.5.300.0110.04217.70
5.5.290.0060.04617.63
5.5.280.0030.03017.68
5.5.270.0070.03317.54
5.5.260.0100.03917.46
5.5.250.0020.03117.33
5.5.240.0030.04617.01
5.5.230.0070.03517.18
5.5.220.0080.03317.31
5.5.210.0070.04217.16
5.5.200.0080.04017.07
5.5.190.0070.03717.18
5.5.180.0100.03517.21
5.5.170.0170.00014.24
5.5.160.0070.03817.24
5.5.150.0090.04217.30
5.5.140.0130.03817.19
5.5.130.0070.03517.10
5.5.120.0050.03517.30
5.5.110.0050.03917.12
5.5.100.0040.03917.15
5.5.90.0090.04017.19
5.5.80.0080.04217.18
5.5.70.0050.04317.01
5.5.60.0090.04116.97
5.5.50.0050.03317.14
5.5.40.0070.04217.12
5.5.30.0050.04016.96
5.5.20.0120.02717.04
5.5.10.0030.04117.09
5.5.00.0060.04116.99

preferences:
43.97 ms | 400 KiB | 5 Q