3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ch = curl_init(); $data = array("notification" => array('title' => 'abc', 'body' => 'cde', 'click_action' =>'http'), "to" => "/topics/default"); $data_string = json_encode($data); curl_setopt($ch, CURLOPT_URL,"https://fcm.googleapis.com/fcm/send"); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, $data_string); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Authorization:key=AAAA0oAC_b8: APA91bGl5xznSKY64_L1aHJwl0T9bt1DqJoZQDWCehJORJgiEFajcHnruT3lDbXPSYdAv7M6ni2iFgkHLQm3Bo9nU9d7gN-bofZ_Ve5ihBmc91tWEDviXDgRWodSgFq48ljG74zef9QI', 'Content-Type: application/json' )); // in real life you should use something like: // curl_setopt($ch, CURLOPT_POSTFIELDS, // http_build_query(array('postvar1' => 'value1'))); // receive server response ... curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $server_output = curl_exec ($ch); curl_close ($ch); print_r($server_output);

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.0140.00716.75
8.3.50.0080.00616.34
8.3.40.0110.00419.02
8.3.30.0090.00918.71
8.3.20.0070.00020.10
8.3.10.0060.00323.48
8.3.00.0080.00019.68
8.2.180.0140.00718.39
8.2.170.0160.00322.96
8.2.160.0070.01418.95
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0060.00319.39
8.2.120.0050.00326.35
8.2.110.0060.00322.20
8.2.100.0080.00417.78
8.2.90.0040.00419.02
8.2.80.0060.00317.97
8.2.70.0060.00317.63
8.2.60.0040.00417.68
8.2.50.0000.00918.10
8.2.40.0040.00420.55
8.2.30.0070.00019.22
8.2.20.0000.00717.91
8.2.10.0070.00018.06
8.2.00.0050.00217.95
8.1.280.0140.00725.92
8.1.270.0040.00422.14
8.1.260.0050.00226.35
8.1.250.0070.00028.09
8.1.240.0060.00323.96
8.1.230.0070.00422.18
8.1.220.0040.00417.74
8.1.210.0030.00618.77
8.1.200.0060.00317.10
8.1.190.0050.00317.25
8.1.180.0000.00818.10
8.1.170.0000.00818.56
8.1.160.0000.00718.91
8.1.150.0040.00420.51
8.1.140.0000.00719.57
8.1.130.0000.00718.68
8.1.120.0030.00417.40
8.1.110.0030.00617.18
8.1.100.0040.00417.23
8.1.90.0000.00717.30
8.1.80.0000.00717.22
8.1.70.0000.00717.37
8.1.60.0040.00417.34
8.1.50.0070.00017.45
8.1.40.0040.00417.39
8.1.30.0060.00317.48
8.1.20.0000.00817.43
8.1.10.0040.00417.55
8.1.00.0040.00417.38
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0000.00718.40
8.0.270.0000.00817.12
8.0.260.0040.00416.76
8.0.250.0030.00316.96
8.0.240.0030.00516.97
8.0.230.0000.00716.94
8.0.220.0030.00616.90
8.0.210.0030.00316.93
8.0.200.0000.00716.96
8.0.190.0030.00616.82
8.0.180.0070.00016.99
8.0.170.0000.00716.81
8.0.160.0050.00216.91
8.0.150.0000.00716.87
8.0.140.0040.00416.83
8.0.130.0000.00513.36
8.0.120.0030.00516.75
8.0.110.0040.00316.82
8.0.100.0040.00416.74
8.0.90.0070.00016.94
8.0.80.0070.01016.91
8.0.70.0000.00816.82
8.0.60.0020.00516.68
8.0.50.0070.00016.77
8.0.30.0100.00616.88
8.0.20.0130.00817.40
8.0.10.0080.00017.02
8.0.00.0040.01216.77
7.4.330.0000.00515.55
7.4.320.0070.00016.48
7.4.300.0000.00716.53
7.4.290.0040.00416.46
7.4.280.0120.00016.34
7.4.270.0000.00716.55
7.4.260.0000.01016.48
7.4.250.0030.00316.46
7.4.240.0000.00816.45
7.4.230.0030.00316.56
7.4.220.0100.00716.59
7.4.210.0110.00816.63
7.4.200.0050.00216.62
7.4.160.0100.00616.52
7.4.150.0070.01017.40
7.4.140.0070.01117.86
7.4.130.0160.00316.50
7.4.120.0110.00816.50
7.4.110.0090.00916.46
7.4.100.0030.01616.54
7.4.90.0100.00716.48
7.4.80.0090.00919.39
7.4.70.0070.01016.34
7.4.60.0090.00616.34
7.4.50.0040.01116.57
7.4.40.0130.00716.54
7.4.30.0080.00816.50
7.4.00.0090.00314.90
7.3.330.0060.00013.16
7.3.320.0000.00613.15
7.3.310.0030.00316.33
7.3.300.0030.00316.10
7.3.290.0000.00716.22
7.3.280.0100.00716.25
7.3.270.0160.00517.40
7.3.260.0090.01116.42
7.3.250.0100.00916.29
7.3.240.0090.00916.29
7.3.230.0110.00816.31
7.3.210.0060.00916.28
7.3.200.0070.01016.17
7.3.190.0100.00716.36
7.3.180.0040.01816.39
7.3.170.0090.00916.29
7.3.160.0030.01316.42
7.2.330.0120.00816.69
7.2.320.0090.00816.23
7.2.310.0030.01416.71
7.2.300.0120.00616.53
7.2.290.0150.00816.36
7.2.60.0780.00615.04
7.2.00.0060.00619.14
7.1.200.0060.00615.37
7.1.100.0030.00917.69
7.1.70.0720.00715.13
7.1.60.0390.01134.73
7.1.50.0490.01532.70
7.1.40.0490.01732.38
7.1.30.0570.01332.32
7.1.20.1120.01232.57
7.1.10.0220.01614.57
7.1.00.0190.01514.77
7.0.200.0170.01314.78
7.0.190.0300.00016.34
7.0.180.0220.01914.52
7.0.170.0320.01516.25
7.0.160.0260.01214.33
7.0.150.0260.00914.40
7.0.140.0220.01014.39
7.0.130.0100.00716.48
7.0.120.0090.01116.56
7.0.110.0080.01116.20
7.0.100.0150.01214.33
7.0.90.0120.00816.02
7.0.80.0110.00816.25
7.0.70.0160.01614.41
7.0.60.0150.00416.09
7.0.50.0100.01016.10
7.0.40.0090.00916.09
7.0.30.0150.01214.68
7.0.20.0120.01214.40
7.0.10.0130.01014.43
7.0.00.0200.00714.38

preferences:
61.45 ms | 401 KiB | 5 Q