3v4l.org

run code in 300+ PHP versions simultaneously
<?php // API access key from Google API's Console define( 'API_ACCESS_KEY', 'AIzaSyA_fOIZM-EjvWyz4qubBMWpbQNLVP9qcmg' ); $registrationIds = array("APA91bG8-nQk8RcGWxKraoy1qKrQG8SIjbi3uOUPG8oTgKjlX2TeXi_wDDfnt9Rfqi_B6K4dWgcqVMiY2p5gubjxB7__pNLoMCx-PBiillCFDpHjlMplflKVmQux_OD8abJuU_AV-RE7ZdIAzmLKMCw5CcXcXuj9g2oPdyyRIBGo9MO4Xo-DD48" ); // 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 ); $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://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.70.0100.01016.75
8.3.60.0160.00616.63
8.3.50.0150.00718.49
8.3.40.0140.00018.73
8.3.30.0070.00718.84
8.3.20.0040.00418.77
8.3.10.0040.00420.70
8.3.00.0080.00019.50
8.2.180.0100.00718.54
8.2.170.0060.00922.96
8.2.160.0120.00419.45
8.2.150.0030.00524.18
8.2.140.0030.00524.66
8.2.130.0090.00026.16
8.2.120.0000.00820.58
8.2.110.0030.00721.05
8.2.100.0100.00317.91
8.2.90.0000.00920.98
8.2.80.0000.00719.29
8.2.70.0040.00417.63
8.2.60.0060.00318.05
8.2.50.0050.00318.07
8.2.40.0000.00818.03
8.2.30.0000.00818.10
8.2.20.0040.00419.49
8.2.10.0040.00417.71
8.2.00.0060.00317.91
8.1.280.0120.00325.92
8.1.270.0000.00724.66
8.1.260.0030.01026.35
8.1.250.0040.00428.09
8.1.240.0060.00322.45
8.1.230.0000.01121.00
8.1.220.0050.00317.80
8.1.210.0030.00618.85
8.1.200.0060.00317.36
8.1.190.0070.00017.53
8.1.180.0050.00318.10
8.1.170.0080.00018.84
8.1.160.0080.00018.92
8.1.150.0050.00218.70
8.1.140.0000.00717.48
8.1.130.0080.00017.92
8.1.120.0000.00717.39
8.1.110.0040.00417.33
8.1.100.0050.00217.46
8.1.90.0070.00017.48
8.1.80.0030.00417.48
8.1.70.0070.00017.41
8.1.60.0030.00517.62
8.1.50.0000.00717.38
8.1.40.0040.00417.52
8.1.30.0040.00417.64
8.1.20.0030.00517.75
8.1.10.0050.00217.61
8.1.00.0040.00417.48
8.0.300.0040.00420.07
8.0.290.0070.00016.75
8.0.280.0030.00318.49
8.0.270.0040.00417.18
8.0.260.0040.00416.99
8.0.250.0040.00417.09
8.0.240.0000.00816.94
8.0.230.0040.00416.94
8.0.220.0080.00017.01
8.0.210.0000.00716.98
8.0.200.0000.00716.91
8.0.190.0050.00317.01
8.0.180.0020.00517.02
8.0.170.0060.00316.89
8.0.160.0000.00716.97
8.0.150.0040.00416.96
8.0.140.0030.00616.88
8.0.130.0000.00613.39
8.0.120.0000.00716.98
8.0.110.0040.00416.93
8.0.100.0040.00416.93
8.0.90.0050.00316.79
8.0.80.0040.01517.02
8.0.70.0000.00717.05
8.0.60.0030.00716.97
8.0.50.0000.00716.85
8.0.30.0090.00617.21
8.0.20.0090.00917.09
8.0.10.0020.00517.18
8.0.00.0060.01216.88
7.4.330.0000.00513.08
7.4.320.0000.00616.63
7.4.300.0030.00316.54
7.4.290.0030.00316.53
7.4.280.0000.00916.54
7.4.270.0000.00716.64
7.4.260.0050.00013.31
7.4.250.0000.00816.53
7.4.240.0030.00316.48
7.4.230.0070.00016.36
7.4.220.0130.00616.50
7.4.210.0070.01316.49
7.4.200.0040.00416.46
7.4.190.0000.00716.55
7.4.160.0070.01016.48
7.4.150.0070.01016.72
7.4.140.0150.00416.70
7.4.130.0100.00816.70
7.4.120.0100.00716.56
7.4.110.0030.01316.52
7.4.100.0090.00616.56
7.4.90.0150.00316.48
7.4.80.0100.00719.39
7.4.70.0060.01116.53
7.4.60.0140.00316.64
7.4.50.0000.00816.62
7.4.40.0040.01116.28
7.4.30.0100.00716.58
7.4.10.0050.01314.96
7.4.00.0040.01414.95
7.3.330.0050.00213.20
7.3.320.0070.00013.07
7.3.310.0000.00716.39
7.3.300.0030.00316.40
7.3.290.0060.01016.36
7.3.280.0090.00616.37
7.3.270.0160.00816.63
7.3.260.0100.00816.62
7.3.250.0120.00516.58
7.3.240.0100.00716.47
7.3.230.0170.00016.42
7.3.210.0130.01016.60
7.3.200.0090.00616.70
7.3.190.0140.00716.41
7.3.180.0030.01716.54
7.3.170.0050.01016.53
7.3.160.0070.01016.40
7.3.130.0090.00914.85
7.3.120.0090.00914.82
7.3.110.0120.00614.86
7.3.100.0080.00614.72
7.3.90.0110.00714.92
7.3.80.0050.00714.88
7.3.70.0040.01114.74
7.3.60.0040.01014.95
7.3.50.0080.00314.83
7.3.40.0050.00914.88
7.3.30.0060.00814.95
7.3.20.0120.00316.79
7.3.10.0100.00316.59
7.3.00.0040.01216.55
7.2.330.0160.00316.46
7.2.320.0200.00316.71
7.2.310.0110.01116.44
7.2.300.0130.00316.64
7.2.290.0110.01116.55
7.2.260.0070.01015.19
7.2.250.0080.01015.11
7.2.240.0030.01215.00
7.2.230.0090.00614.96
7.2.220.0050.01114.78
7.2.210.0090.00514.88
7.2.200.0050.00714.91
7.2.190.0040.01115.00
7.2.180.0030.01114.80
7.2.170.0060.00714.96
7.2.160.0030.01215.07
7.2.150.0080.00616.91
7.2.140.0050.00816.95
7.2.130.0070.00716.80
7.2.120.0080.00516.76
7.2.110.0080.00516.61
7.2.100.0070.00916.88
7.2.90.0040.00916.89
7.2.80.0060.00816.82
7.2.70.0090.00516.72
7.2.60.0080.00616.97
7.2.50.0090.00616.94
7.2.40.0030.01016.81
7.2.30.0090.00616.79
7.2.20.0120.00616.71
7.2.10.0090.00916.84
7.2.00.0080.00817.48
7.1.330.0040.01115.68
7.1.320.0070.01015.78
7.1.310.0040.01115.79
7.1.300.0050.01015.78
7.1.290.0070.00515.78
7.1.280.0030.00815.79
7.1.270.0050.01015.73
7.1.260.0040.00715.69
7.1.250.0050.00715.73
7.1.240.0040.01015.88
7.1.230.0060.00615.62
7.1.220.0020.01415.74
7.1.210.0030.00815.71
7.1.200.0030.00815.75
7.1.190.0030.00815.84
7.1.180.0030.00815.85
7.1.170.0030.00815.53
7.1.160.0030.00815.84
7.1.150.0030.00815.66
7.1.140.0050.00815.68
7.1.130.0050.00915.71
7.1.120.0030.01115.68
7.1.110.0100.00315.83
7.1.100.0050.00816.68
7.1.90.0030.00915.82
7.1.80.0070.00815.76
7.1.70.0050.00416.21
7.1.60.0070.00816.84
7.1.50.0070.01016.18
7.1.40.0020.00915.80
7.1.30.0110.00315.63
7.1.20.0050.00915.63
7.1.10.0090.00415.63
7.1.00.0080.02517.93
7.0.330.0090.00515.31
7.0.320.0080.00715.34
7.0.310.0010.00915.52
7.0.300.0030.01015.21
7.0.290.0000.01315.52
7.0.280.0070.00715.29
7.0.270.0030.01015.32
7.0.260.0040.00815.37
7.0.250.0080.00615.50
7.0.240.0030.00615.45
7.0.230.0060.00615.52
7.0.220.0020.00815.39
7.0.210.0030.00715.47
7.0.200.0150.00615.21
7.0.190.0060.00815.44
7.0.180.0040.00615.46
7.0.170.0070.00715.38
7.0.160.0130.00115.27
7.0.150.0050.00715.51
7.0.140.0040.03217.70
7.0.130.0060.00715.33
7.0.120.0030.02717.77
7.0.110.0090.00515.35
7.0.100.0030.00815.36
7.0.90.0120.03016.89
7.0.80.0120.02916.98
7.0.70.0080.02016.85
7.0.60.0100.03316.96
7.0.50.0090.02917.08
7.0.40.0110.02915.73
7.0.30.0090.02615.58
7.0.20.0070.03115.56
7.0.10.0130.02315.71
7.0.00.0050.02315.76
5.6.400.0090.00514.17
5.6.390.0050.00914.39
5.6.380.0070.00714.54
5.6.370.0050.00614.46
5.6.360.0040.00414.49
5.6.350.0060.00814.38
5.6.340.0050.00914.43
5.6.330.0030.00914.50
5.6.320.0080.00514.38
5.6.310.0030.01014.46
5.6.300.0070.00614.53
5.6.290.0070.00514.33
5.6.280.0110.02416.65
5.6.270.0030.01214.23
5.6.260.0080.00614.28
5.6.250.0040.00814.51
5.6.240.0070.02016.34
5.6.230.0090.03216.41
5.6.220.0040.03416.32
5.6.210.0100.02216.34
5.6.200.0040.02516.51
5.6.190.0050.02216.53
5.6.180.0130.02616.52
5.6.170.0060.03816.58
5.6.160.0090.01916.51
5.6.150.0060.03616.50
5.6.140.0100.02116.55
5.6.130.0070.02916.72
5.6.120.0070.03016.56
5.6.110.0090.03016.58
5.6.100.0040.02416.47
5.6.90.0060.03016.54
5.6.80.0050.01716.19
5.6.70.0060.02916.25
5.6.60.0080.03116.26
5.6.50.0040.03116.27
5.6.40.0060.02816.24
5.6.30.0050.02316.27
5.6.20.0110.02716.32
5.6.10.0040.02116.31
5.6.00.0070.01816.29
5.5.380.0080.02916.45
5.5.370.0040.02416.20
5.5.360.0030.02016.36
5.5.350.0070.03316.15
5.5.340.0050.02816.55
5.5.330.0030.02616.60
5.5.320.0070.03116.31
5.5.310.0050.03516.49
5.5.300.0060.02816.51
5.5.290.0070.02716.36
5.5.280.0050.03216.55
5.5.270.0020.02416.44
5.5.260.0070.03216.27
5.5.250.0050.02116.37
5.5.240.0080.01716.08
5.5.230.0060.02816.07
5.5.220.0090.02616.08
5.5.210.0110.03216.19
5.5.200.0030.01916.27
5.5.190.0060.03116.03
5.5.180.0060.02516.24
5.5.170.0070.01013.99
5.5.160.0110.02516.10
5.5.150.0020.02316.03
5.5.140.0090.02916.11
5.5.130.0030.02516.12
5.5.120.0060.01816.12
5.5.110.0060.02716.36
5.5.100.0100.02816.14
5.5.90.0060.02816.12
5.5.80.0060.02516.18
5.5.70.0070.02116.09
5.5.60.0080.02316.23
5.5.50.0030.02916.15
5.5.40.0080.02316.04
5.5.30.0100.02616.10
5.5.20.0090.01516.08
5.5.10.0100.02516.14
5.5.00.0080.02916.12
5.4.450.0070.02614.44
5.4.440.0070.01614.53
5.4.430.0080.02314.49
5.4.420.0030.03614.54
5.4.410.0040.03014.51
5.4.400.0050.01914.43
5.4.390.0050.02714.25
5.4.380.0040.02914.37
5.4.370.0070.01614.33
5.4.360.0030.01914.46
5.4.350.0040.03014.42
5.4.340.0060.02914.44
5.4.330.0030.00812.12
5.4.320.0040.01914.28
5.4.310.0070.02814.31
5.4.300.0060.02014.43
5.4.290.0030.01914.47
5.4.280.0070.02514.39
5.4.270.0070.02514.46
5.4.260.0070.02414.37
5.4.250.0050.02914.43
5.4.240.0070.02914.40
5.4.230.0060.02614.40
5.4.220.0040.01914.41
5.4.210.0060.03014.38
5.4.200.0090.02414.37
5.4.190.0090.01714.46
5.4.180.0100.02214.41
5.4.170.0080.02914.42
5.4.160.0070.03014.30
5.4.150.0080.02314.46
5.4.140.0050.02913.51
5.4.130.0060.01713.54
5.4.120.0060.02813.43
5.4.110.0080.02113.58
5.4.100.0090.01713.49
5.4.90.0060.02513.49
5.4.80.0020.01713.46
5.4.70.0060.01413.56
5.4.60.0060.01313.50
5.4.50.0060.02313.48
5.4.40.0010.02013.55
5.4.30.0050.01513.59
5.4.20.0030.01413.43
5.4.10.0030.02013.48
5.4.00.0040.01713.22
5.3.290.0060.02512.80
5.3.280.0060.02412.80
5.3.270.0050.02112.82
5.3.260.0090.02512.81
5.3.250.0060.03012.77
5.3.240.0070.02712.72
5.3.230.0060.02012.71
5.3.220.0040.02012.68
5.3.210.0010.02112.76
5.3.200.0070.02612.71
5.3.190.0090.01512.77
5.3.180.0060.01712.80
5.3.170.0060.01412.82
5.3.160.0040.01712.83
5.3.150.0050.01512.80
5.3.140.0080.01212.76
5.3.130.0060.01712.76
5.3.120.0060.01612.80
5.3.110.0060.01512.79
5.3.100.0050.01612.55
5.3.90.0060.01612.60
5.3.80.0060.01612.58
5.3.70.0050.01812.61
5.3.60.0060.01612.58
5.3.50.0050.02612.45
5.3.40.0030.02012.50
5.3.30.0070.01512.44
5.3.20.0050.01612.39
5.3.10.0050.01512.42
5.3.00.0060.01612.34
5.2.170.0030.03010.91
5.2.160.0100.02310.99
5.2.150.0000.03011.02
5.2.140.0070.06311.00
5.2.130.0000.04311.10
5.2.120.0030.05311.14
5.2.110.0030.02710.95
5.2.100.0030.05011.18
5.2.90.0030.02711.09
5.2.80.0000.03311.11
5.2.70.0000.03011.14
5.2.60.0000.03011.05
5.2.50.0000.03011.06
5.2.40.0000.03010.83
5.2.30.0030.02711.00
5.2.20.0030.02710.77
5.2.10.0030.03010.82
5.2.00.0070.02010.78
5.1.60.0030.02310.07
5.1.50.0070.0339.89
5.1.40.0130.0439.99
5.1.30.0000.02710.25
5.1.20.0070.02710.26
5.1.10.0030.0239.92
5.1.00.0030.02310.09
5.0.50.0030.0278.60
5.0.40.0000.0208.43
5.0.30.0000.0308.31
5.0.20.0000.0208.26
5.0.10.0030.0208.29
5.0.00.0000.0308.20
4.4.90.0030.0237.20
4.4.80.0000.0277.20
4.4.70.0000.0177.20
4.4.60.0030.0137.20
4.4.50.0030.0107.20
4.4.40.0000.0337.20
4.4.30.0030.0237.20
4.4.20.0000.0177.20
4.4.10.0030.0137.20
4.4.00.0000.0277.20
4.3.110.0030.0137.20
4.3.100.0000.0177.20
4.3.90.0030.0137.20
4.3.80.0030.0207.20
4.3.70.0030.0107.20
4.3.60.0030.0137.20
4.3.50.0000.0337.20
4.3.40.0000.0337.20
4.3.30.0000.0177.20
4.3.20.0000.0177.20
4.3.10.0000.0177.20
4.3.00.0030.0137.20

preferences:
55.98 ms | 401 KiB | 5 Q