3v4l.org

run code in 300+ PHP versions simultaneously
<?php // API access key from Google API's Console define( 'API_ACCESS_KEY', '378375861344' ); $registrationIds = array( 'cYmNnP6SS54:APA91bEhZjXumzHTam4t7gw2eHTSLEHJdW24F-1e5Xrfd1ouzZcL9AD2-_2mrlyT3FW-DRMj3lDhvDHWuS2hVyul4Wg1J9vIBb_KdKeIQCsKJ1iK-0jnpk5ErcgjyaD1OWvM6F_fTbgp' ); // 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, '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.0110.00718.37
8.3.50.0090.01121.09
8.3.40.0150.00618.80
8.3.30.0080.00818.85
8.3.20.0080.00020.20
8.3.10.0000.00821.90
8.3.00.0050.00319.80
8.2.180.0110.01118.42
8.2.170.0090.00622.96
8.2.160.0130.00020.35
8.2.150.0050.00324.18
8.2.140.0120.00624.66
8.2.130.0080.00026.16
8.2.120.0080.00017.88
8.2.110.0030.00721.12
8.2.100.0080.00418.03
8.2.90.0040.00419.17
8.2.80.0000.00917.97
8.2.70.0060.00617.38
8.2.60.0060.00317.80
8.2.50.0030.00618.07
8.2.40.0060.00321.13
8.2.30.0000.00719.78
8.2.20.0020.00517.75
8.2.10.0000.00818.14
8.2.00.0050.00318.01
8.1.280.0120.00625.92
8.1.270.0000.00820.38
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0070.00323.95
8.1.230.0040.00720.95
8.1.220.0050.00317.74
8.1.210.0030.00618.77
8.1.200.0030.00617.13
8.1.190.0030.00517.23
8.1.180.0050.00218.10
8.1.170.0000.00818.66
8.1.160.0070.00021.95
8.1.150.0040.00418.82
8.1.140.0060.00317.34
8.1.130.0000.00717.73
8.1.120.0070.00017.42
8.1.110.0080.00017.47
8.1.100.0030.00517.38
8.1.90.0030.00317.38
8.1.80.0000.00717.50
8.1.70.0070.00017.48
8.1.60.0000.00917.63
8.1.50.0000.00717.48
8.1.40.0060.00317.56
8.1.30.0040.00417.57
8.1.20.0040.00417.66
8.1.10.0020.00517.57
8.1.00.0000.00817.60
8.0.300.0050.00219.86
8.0.290.0030.00616.75
8.0.280.0000.00718.46
8.0.270.0030.00317.23
8.0.260.0030.00317.27
8.0.250.0050.00216.92
8.0.240.0000.00617.09
8.0.230.0060.00317.04
8.0.220.0000.00716.93
8.0.210.0050.00216.94
8.0.200.0030.00317.02
8.0.190.0080.00016.96
8.0.180.0000.00717.05
8.0.170.0070.00016.93
8.0.160.0060.00316.98
8.0.150.0000.00716.87
8.0.140.0000.00716.95
8.0.130.0060.00013.44
8.0.120.0040.00416.79
8.0.110.0070.00016.87
8.0.100.0040.00416.97
8.0.90.0000.00716.86
8.0.80.0120.01016.86
8.0.70.0040.00416.99
8.0.60.0000.00816.86
8.0.50.0070.00016.93
8.0.30.0100.00817.03
8.0.20.0100.01317.40
8.0.10.0040.00416.96
8.0.00.0060.01116.85
7.4.330.0030.00315.08
7.4.320.0000.00616.46
7.4.300.0030.00316.45
7.4.290.0040.00416.52
7.4.280.0040.00416.67
7.4.270.0030.00316.63
7.4.260.0040.00416.48
7.4.250.0070.00016.63
7.4.240.0050.00316.59
7.4.230.0000.00716.74
7.4.220.0130.01016.57
7.4.210.0070.00716.70
7.4.200.0030.00316.41
7.4.160.0080.00816.44
7.4.150.0100.01017.40
7.4.140.0130.00917.86
7.4.130.0070.01016.57
7.4.120.0110.00616.46
7.4.110.0170.00016.70
7.4.100.0170.00016.38
7.4.90.0100.01016.60
7.4.80.0060.01119.39
7.4.70.0100.01016.58
7.4.60.0060.01216.62
7.4.50.0050.00016.35
7.4.40.0070.01016.54
7.4.30.0060.01316.66
7.4.00.0110.00715.21
7.3.330.0030.00313.10
7.3.320.0020.00213.18
7.3.310.0070.00016.18
7.3.300.0000.00716.36
7.3.290.0060.00816.40
7.3.280.0050.01316.34
7.3.270.0090.00917.40
7.3.260.0140.00316.51
7.3.250.0080.01016.59
7.3.240.0130.00316.50
7.3.230.0060.01216.58
7.3.210.0060.01316.50
7.3.200.0040.01319.39
7.3.190.0110.00616.50
7.3.180.0090.00616.25
7.3.170.0180.00616.47
7.3.160.0070.01116.39
7.3.10.0030.01016.45
7.3.00.0070.00716.18
7.2.330.0170.00716.48
7.2.320.0040.01416.39
7.2.310.0120.00916.59
7.2.300.0110.00616.40
7.2.290.0060.01016.46
7.2.130.0000.01016.22
7.2.120.0140.00716.59
7.2.110.0040.01116.30
7.2.100.0030.00916.52
7.2.90.0030.00616.21
7.2.80.0000.01416.66
7.2.70.0000.01116.30
7.2.60.0050.01116.64
7.2.50.0030.00616.49
7.2.40.0060.00916.43
7.2.30.0080.00416.50
7.2.20.0110.00716.38
7.2.10.0100.00716.35
7.2.00.0020.01118.16
7.1.250.0030.00715.46
7.1.200.0070.00715.76
7.1.100.0030.00818.31
7.1.70.0070.00316.91
7.1.60.0040.01520.03
7.1.50.0030.02016.93
7.1.00.0000.08022.54
7.0.200.0080.00016.64
7.0.90.0030.03720.00
7.0.80.0030.05019.93
7.0.70.0100.04319.97
7.0.60.0030.04719.86
7.0.50.0030.04320.34
7.0.40.0070.04720.10
7.0.30.0100.04020.15
7.0.20.0030.05020.04
7.0.10.0000.04720.09
7.0.00.0030.03720.09
5.6.280.0000.07320.94
5.6.230.0030.05020.50
5.6.220.0130.03720.58
5.6.210.0000.04720.73
5.6.200.0030.05021.11
5.6.190.0130.03321.07
5.6.180.0070.04720.97
5.6.170.0000.04321.05
5.6.160.0000.03721.08
5.6.150.0000.03721.08
5.6.140.0030.06021.12
5.6.130.0030.08021.08
5.6.120.0070.08321.01
5.6.110.0030.04021.00
5.6.100.0070.04021.05
5.6.90.0000.05321.10
5.6.80.0030.07720.47
5.6.70.0000.04020.49
5.6.60.0030.04020.34
5.6.50.0000.08320.47
5.6.40.0070.07720.39
5.6.30.0030.07720.45
5.6.20.0070.04020.31
5.6.10.0000.03720.39
5.6.00.0030.04720.39
5.5.370.0000.05020.31
5.5.360.0030.04320.29
5.5.350.0130.03720.41
5.5.340.0070.04720.87
5.5.330.0070.05020.81
5.5.320.0030.04320.77
5.5.310.0100.04020.75
5.5.300.0070.03320.89
5.5.290.0100.03720.86
5.5.280.0030.06720.82
5.5.270.0030.07020.88
5.5.260.0000.06020.88
5.5.250.0100.03020.69
5.5.240.0070.07720.16
5.5.230.0100.06320.26
5.5.220.0030.05020.11
5.5.210.0030.04020.14
5.5.200.0030.04320.13
5.5.190.0070.03720.17
5.5.180.0070.06720.30
5.5.160.0000.08320.28
5.5.150.0100.07320.18
5.5.140.0070.06020.11
5.5.130.0030.04720.13
5.5.120.0000.03719.99
5.5.110.0070.03020.27
5.5.100.0100.07720.02
5.5.90.0070.07720.18
5.5.80.0030.07320.08
5.5.70.0130.02720.15
5.5.60.0070.07720.09
5.5.50.0030.06720.11
5.5.40.0030.03320.00
5.5.30.0170.07020.14
5.5.20.0030.05320.05
5.5.10.0170.05020.01
5.5.00.0070.07720.05
5.4.450.0070.05719.40
5.4.440.0070.04319.47
5.4.430.0100.05019.55
5.4.420.0000.05319.47
5.4.410.0070.08019.22
5.4.400.0000.05018.96
5.4.390.0070.06719.14
5.4.380.0100.08019.22
5.4.370.0070.03318.95
5.4.360.0070.07319.06
5.4.350.0100.07019.04
5.4.340.0000.07019.17
5.4.320.0130.02719.12
5.4.310.0000.03318.92
5.4.300.0030.03719.03
5.4.290.0000.04019.09
5.4.280.0070.08018.81
5.4.270.0100.06718.98
5.4.260.0000.03719.22
5.4.250.0030.06719.05
5.4.240.0030.04319.11
5.4.230.0130.06718.80
5.4.220.0030.07019.09
5.4.210.0000.07319.03
5.4.200.0000.05319.02
5.4.190.0070.06718.84
5.4.180.0070.04019.13
5.4.170.0070.06318.88
5.4.160.0100.06718.76
5.4.150.0000.04018.76
5.4.140.0100.02716.23
5.4.130.0030.07316.33
5.4.120.0100.06316.31
5.4.110.0070.06716.40
5.4.100.0070.04016.41
5.4.90.0030.07016.27
5.4.80.0030.03316.19
5.4.70.0070.03016.36
5.4.60.0030.07716.34
5.4.50.0100.05716.30
5.4.40.0000.03316.26
5.4.30.0070.03016.29
5.4.20.0100.06316.27
5.4.10.0100.06316.33
5.4.00.0070.02715.52

preferences:
81.78 ms | 401 KiB | 5 Q