3v4l.org

run code in 300+ PHP versions simultaneously
<?php // API access key from Google API's Console define( 'API_ACCESS_KEY', 'AIzaSyAcG-19cTxdiHEP1d8gq3aPLKs3sKa1bSk' ); $registrationIds = array("APA91bFKvdBmegcJHsaZ4f0ibIo-Zr8kvjJoPj39NuU-upE-vvqG3zFV9z1PHzt7VNUBNT4IuTB7JHuMMwL0SnsjnG4x97aOsAUPefEbY9qrKzLGOPh4T1G0Mo-aCTWtNQeNh4gT8mGDGZX1ZQlKm3SkxpBdMVXrLQ" ); // prep the bundle $msg = array ( 'message' => 'Message: Salut Samzz', '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.40.0070.01118.81
8.3.30.0100.00319.16
8.3.20.0050.00320.25
8.3.10.0070.00023.71
8.3.00.0000.00722.39
8.2.170.0130.00322.96
8.2.160.0100.00320.53
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0130.00626.16
8.2.120.0080.00022.07
8.2.110.0060.00322.09
8.2.100.0040.00817.84
8.2.90.0040.00419.35
8.2.80.0040.00418.05
8.2.70.0030.00617.75
8.2.60.0040.00417.92
8.2.50.0000.00818.07
8.2.40.0040.00418.34
8.2.30.0070.00018.11
8.2.20.0040.00417.73
8.2.10.0050.00217.75
8.2.00.0000.00717.82
8.1.270.0040.00422.14
8.1.260.0000.00826.35
8.1.250.0050.00228.09
8.1.240.0040.00423.93
8.1.230.0080.00419.10
8.1.220.0080.00017.79
8.1.210.0030.00618.77
8.1.200.0000.00917.35
8.1.190.0090.00017.53
8.1.180.0040.00418.10
8.1.170.0060.00318.46
8.1.160.0040.00422.00
8.1.150.0030.00518.54
8.1.140.0070.00017.48
8.1.130.0050.00317.76
8.1.120.0070.00017.39
8.1.110.0040.00417.39
8.1.100.0030.00517.43
8.1.90.0040.00417.54
8.1.80.0030.00317.48
8.1.70.0030.00317.36
8.1.60.0000.00817.51
8.1.50.0020.00517.52
8.1.40.0050.00217.41
8.1.30.0000.00817.61
8.1.20.0040.00417.58
8.1.10.0030.00617.56
8.1.00.0030.00517.50
8.0.300.0040.00418.77
8.0.290.0040.00417.04
8.0.280.0050.00218.47
8.0.270.0080.00017.20
8.0.260.0030.00316.91
8.0.250.0030.00317.04
8.0.240.0030.00517.05
8.0.230.0040.00417.03
8.0.220.0000.00716.97
8.0.210.0000.00716.84
8.0.200.0030.00316.93
8.0.190.0040.00417.05
8.0.180.0000.00816.93
8.0.170.0040.00416.88
8.0.160.0050.00316.94
8.0.150.0040.00417.02
8.0.140.0070.00016.83
8.0.130.0030.00313.47
8.0.120.0000.00816.93
8.0.110.0080.00016.98
8.0.100.0000.00717.01
8.0.90.0040.00416.81
8.0.80.0030.01317.00
8.0.70.0060.00316.84
8.0.60.0040.00416.86
8.0.50.0040.00417.04
8.0.30.0100.00917.12
8.0.20.0070.01217.40
8.0.10.0050.00217.21
8.0.00.0080.01616.71
7.4.330.0000.00515.12
7.4.320.0030.00316.69
7.4.300.0060.00016.54
7.4.290.0000.00716.52
7.4.280.0080.00016.67
7.4.270.0030.00316.65
7.4.260.0030.00316.61
7.4.250.0000.00816.60
7.4.240.0020.00516.64
7.4.230.0030.00316.63
7.4.220.0060.01216.65
7.4.210.0040.01116.63
7.4.200.0000.00716.45
7.4.190.0000.00716.81
7.4.160.0110.00616.53
7.4.150.0090.00917.40
7.4.140.0170.01817.86
7.4.130.0120.00516.55
7.4.120.0110.00616.49
7.4.110.0100.00716.57
7.4.100.0120.00616.53
7.4.90.0120.00916.39
7.4.80.0080.01019.39
7.4.70.0060.00916.77
7.4.60.0060.01016.56
7.4.50.0040.00016.66
7.4.40.0100.00622.77
7.4.30.0130.00316.44
7.4.10.0070.01115.15
7.4.00.0040.01214.87
7.3.330.0050.00013.23
7.3.320.0000.00613.22
7.3.310.0040.00416.32
7.3.300.0030.00316.36
7.3.290.0110.00416.29
7.3.280.0080.00916.37
7.3.270.0070.01017.40
7.3.260.0140.00716.39
7.3.250.0110.01016.45
7.3.240.0100.01016.58
7.3.230.0070.01316.47
7.3.210.0160.00016.27
7.3.200.0130.01019.39
7.3.190.0070.01416.50
7.3.180.0070.01416.30
7.3.170.0030.01316.36
7.3.160.0080.00816.55
7.3.130.0030.01614.80
7.3.120.0090.00814.82
7.3.110.0070.01315.07
7.3.100.0120.00315.17
7.3.90.0100.00715.13
7.3.80.0000.01614.77
7.3.70.0110.00414.81
7.3.60.0030.01315.06
7.3.50.0080.00314.76
7.3.40.0060.00614.77
7.3.30.0040.00414.96
7.3.20.0000.01316.83
7.3.10.0050.00816.72
7.3.00.0030.01116.45
7.2.330.0060.01216.69
7.2.320.0060.01216.53
7.2.310.0060.00916.63
7.2.300.0070.01016.71
7.2.290.0060.00916.47
7.2.260.0040.01515.27
7.2.250.0030.01814.93
7.2.240.0070.00714.87
7.2.230.0060.00915.30
7.2.220.0040.00714.77
7.2.210.0030.01015.14
7.2.200.0130.00315.13
7.2.190.0000.01015.18
7.2.180.0000.01114.80
7.2.170.0060.00914.98
7.2.160.0060.00314.98
7.2.150.0070.01016.96
7.2.140.0060.00816.72
7.2.130.0090.00616.84
7.2.120.0050.00716.90
7.2.110.0030.01216.78
7.2.100.0040.00816.76
7.2.90.0050.00916.72
7.2.80.0090.00616.81
7.2.70.0060.01116.88
7.2.60.0060.00716.87
7.2.50.0060.00816.88
7.2.40.0060.00616.86
7.2.30.0020.01216.68
7.2.20.0070.01017.04
7.2.10.0070.00916.94
7.2.00.0060.00516.95
7.1.330.0000.01415.68
7.1.320.0030.00915.77
7.1.310.0100.00315.92
7.1.300.0070.00715.96
7.1.290.0060.00615.91
7.1.280.0080.00415.66
7.1.270.0090.00015.88
7.1.260.0040.00815.83
7.1.250.0090.00515.72
7.1.240.0000.01215.85
7.1.230.0040.01115.56
7.1.220.0090.00915.75
7.1.210.0030.00915.66
7.1.200.0040.00415.81
7.1.190.0090.00615.90
7.1.180.0080.00515.93
7.1.170.0040.00415.54
7.1.160.0040.00815.91
7.1.150.0060.00615.77
7.1.140.0060.01215.92
7.1.130.0090.00915.83
7.1.120.0040.00715.52
7.1.110.0040.01115.80
7.1.100.0050.00515.93
7.1.90.0040.01215.87
7.1.80.0000.01015.81
7.1.70.0060.00816.32
7.1.60.0070.00917.52
7.1.50.0050.01516.35
7.1.40.0070.00715.63
7.1.30.0040.01215.96
7.1.20.0100.00715.96
7.1.10.0070.00315.96
7.1.00.0000.04119.13
7.0.330.0060.00615.32
7.0.320.0070.00315.32
7.0.310.0060.00315.52
7.0.300.0030.01015.36
7.0.290.0000.00915.45
7.0.280.0030.01215.32
7.0.270.0000.00915.62
7.0.260.0070.01015.25
7.0.250.0030.00915.21
7.0.240.0100.00315.62
7.0.230.0030.00915.38
7.0.220.0000.01315.32
7.0.210.0060.00615.56
7.0.200.0040.00716.04
7.0.190.0100.00715.29
7.0.180.0100.00615.48
7.0.170.0040.01115.57
7.0.160.0040.00815.55
7.0.150.0040.01115.48
7.0.140.0060.04118.64
7.0.130.0000.01915.55
7.0.120.0040.00815.61
7.0.110.0000.01215.45
7.0.100.0100.00315.57
7.0.90.0220.02717.61
7.0.80.0200.02717.71
7.0.70.0340.03717.76
7.0.60.0330.02817.59
7.0.50.0250.03217.93
7.0.40.0080.04216.77
7.0.30.0080.03316.61
7.0.20.0070.04216.70
7.0.10.0080.03016.73
7.0.00.0050.02816.84
5.6.400.0090.00314.15
5.6.390.0030.00914.26
5.6.380.0080.00414.18
5.6.370.0120.00314.51
5.6.360.0090.00314.34
5.6.350.0100.00014.43
5.6.340.0090.00614.48
5.6.330.0000.01014.49
5.6.320.0130.00314.00
5.6.310.0040.00414.38
5.6.300.0100.00714.29
5.6.290.0070.00714.29
5.6.280.0050.04217.71
5.6.270.0000.00914.28
5.6.260.0100.00314.30
5.6.250.0060.00614.35
5.6.240.0080.04117.65
5.6.230.0130.03517.46
5.6.220.0090.04217.42
5.6.210.0040.03917.47
5.6.200.0070.04317.61
5.6.190.0080.02817.59
5.6.180.0060.02917.68
5.6.170.0080.04517.52
5.6.160.0050.04717.58
5.6.150.0020.03217.68
5.6.140.0030.02617.64
5.6.130.0040.02517.61
5.6.120.0070.02517.70
5.6.110.0030.02717.64
5.6.100.0070.02517.70
5.6.90.0090.01817.71
5.6.80.0070.02217.31
5.6.70.0040.02117.28
5.6.60.0020.02617.29
5.6.50.0120.01317.19
5.6.40.0050.02317.31
5.6.30.0010.03317.23
5.6.20.0120.01517.33
5.6.10.0030.02817.28
5.6.00.0060.02317.25
5.5.380.0090.04017.37
5.5.370.0080.02117.29
5.5.360.0120.03417.45
5.5.350.0090.03917.24
5.5.340.0060.02217.43
5.5.330.0070.04217.55
5.5.320.0050.04317.53
5.5.310.0090.02717.58
5.5.300.0050.02217.66
5.5.290.0100.02417.48
5.5.280.0000.03117.57
5.5.270.0050.03017.64
5.5.260.0030.02517.43
5.5.250.0080.02517.46
5.5.240.0020.04817.10
5.5.230.0030.02217.18
5.5.220.0030.04217.01
5.5.210.0050.02317.17
5.5.200.0050.02317.27
5.5.190.0080.02317.31
5.5.180.0080.02317.16
5.5.170.0040.01213.88
5.5.160.0050.02417.20
5.5.150.0000.04217.30
5.5.140.0080.01817.34
5.5.130.0060.02117.22
5.5.120.0090.02017.32
5.5.110.0050.02017.28
5.5.100.0080.02017.29
5.5.90.0050.02517.11
5.5.80.0030.02417.16
5.5.70.0030.02817.24
5.5.60.0030.03217.00
5.5.50.0030.02417.13
5.5.40.0060.02316.93
5.5.30.0060.02617.04
5.5.20.0060.02117.19
5.5.10.0080.02017.22
5.5.00.0080.01917.17
5.4.450.0080.02015.19
5.4.440.0020.02415.15
5.4.430.0040.02715.18
5.4.420.0020.02415.13
5.4.410.0030.02415.23
5.4.400.0070.03614.81
5.4.390.0050.04014.99
5.4.380.0010.03114.99
5.4.370.0100.03514.94
5.4.360.0080.04014.88
5.4.350.0020.02115.01
5.4.340.0040.02614.92
5.4.330.0030.00611.04
5.4.320.0030.02014.81
5.4.310.0070.03214.84
5.4.300.0030.02114.66
5.4.290.0030.02314.88
5.4.280.0030.02914.99
5.4.270.0060.01714.88
5.4.260.0020.03114.75
5.4.250.0020.02514.92
5.4.240.0080.01615.05
5.4.230.0060.01814.99
5.4.220.0050.02314.77
5.4.210.0060.02014.92
5.4.200.0060.02014.81
5.4.190.0030.02014.93
5.4.180.0060.01815.00
5.4.170.0050.02014.97
5.4.160.0050.02014.96
5.4.150.0030.02414.74
5.4.140.0020.02113.51
5.4.130.0060.02013.63
5.4.120.0080.03313.54
5.4.110.0030.02813.60
5.4.100.0030.03313.62
5.4.90.0080.02313.64
5.4.80.0020.02513.61
5.4.70.0080.02313.42
5.4.60.0080.03813.62
5.4.50.0000.02813.66
5.4.40.0020.02513.53
5.4.30.0110.03013.53
5.4.20.0060.02113.53
5.4.10.0030.03213.44
5.4.00.0100.03713.22
5.3.290.0020.02212.49
5.3.280.0070.01712.50
5.3.270.0000.02412.55
5.3.260.0070.02112.43
5.3.250.0030.02212.42
5.3.240.0030.02512.37
5.3.230.0060.04012.44
5.3.220.0040.04412.53
5.3.210.0040.04212.51
5.3.200.0020.03612.53
5.3.190.0050.04212.60
5.3.180.0060.02812.63
5.3.170.0080.03812.57
5.3.160.0080.04212.51
5.3.150.0050.04212.58
5.3.140.0100.03912.39
5.3.130.0050.04112.60
5.3.120.0020.03912.37
5.3.110.0070.04012.47
5.3.100.0050.03212.24
5.3.90.0020.03712.32
5.3.80.0080.04012.21
5.3.70.0050.04112.24
5.3.60.0030.03812.16
5.3.50.0050.04012.13
5.3.40.0030.04012.21
5.3.30.0020.03012.15
5.3.20.0020.04411.90
5.3.10.0070.02211.87
5.3.00.0030.03811.96
5.2.170.0030.06711.10
5.2.160.0170.05011.12
5.2.150.0130.05710.98
5.2.140.0070.06311.07
5.2.130.0070.04311.14
5.2.120.0030.03710.95
5.2.110.0000.06311.11
5.2.100.0070.05711.11
5.2.90.0030.04311.04
5.2.80.0070.03311.10
5.2.70.0030.05710.90
5.2.60.0100.06310.98
5.2.50.0070.04310.86
5.2.40.0070.06011.01
5.2.30.0000.06011.05
5.2.20.0000.05710.89
5.2.10.0070.06310.80
5.2.00.0070.05710.80
5.1.60.0030.03310.10
5.1.50.0070.0339.99
5.1.40.0000.05710.00
5.1.30.0030.06010.40
5.1.20.0070.06010.41
5.1.10.0030.05710.09
5.1.00.0030.05710.11
5.0.50.0000.0338.45
5.0.40.0030.0438.50
5.0.30.0030.0478.30
5.0.20.0000.0408.20
5.0.10.0030.0478.21
5.0.00.0030.0608.24
4.4.90.0000.0337.23
4.4.80.0030.0337.23
4.4.70.0030.0237.23
4.4.60.0000.0377.23
4.4.50.0000.0277.23
4.4.40.0070.0477.23
4.4.30.0100.0307.23
4.4.20.0030.0377.23
4.4.10.0000.0277.23
4.4.00.0000.0377.23
4.3.110.0000.0337.23
4.3.100.0030.0177.23
4.3.90.0030.0337.23
4.3.80.0070.0437.23
4.3.70.0000.0377.23
4.3.60.0030.0307.23
4.3.50.0000.0377.23
4.3.40.0030.0507.23
4.3.30.0070.0307.23
4.3.20.0030.0337.23
4.3.10.0000.0377.23
4.3.00.0030.0207.23

preferences:
41.46 ms | 400 KiB | 5 Q