3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ch = curl_init(); $userid = 149; // $url = "http://apitest/user/show"; // $url = "http://apitest/pushserver/messagecreate.json?"; $url = "http://apitest/pushserver/lookupuserid"; $category = 'singer'; // $category = $_POST['category']; $data = array('userid' => $userid ); $headers = array('X_USERNAME' => 's', 'X_PASSWORD'=> '$!' ); $data = array('message' => 'test message', 'user_id'=>' ["1","2","3"]' ); curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); curl_setopt($ch, CURLOPT_HEADER, 1); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_POSTFIELDS, $data); //Find the users of the selected category $users = get_users(array( 'meta_key' => '_talent_category', 'meta_value' => $category, )); echo '<pre>'; // print_r($users); echo '</pre>'; foreach( $users as $user ) { $id = $user->ID; } //Find out which users are registered with the push service //Send push notification to selected user //$var = curl_getinfo($ch); //var_dump ($var); curl_exec($ch); curl_close($ch);

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.0110.00418.75
8.3.30.0120.00919.00
8.3.20.0040.00420.18
8.3.10.0050.00323.66
8.3.00.0070.00319.38
8.2.170.0140.00022.96
8.2.160.0100.00320.19
8.2.150.0000.00824.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0070.00722.01
8.2.110.0030.00522.25
8.2.100.0040.00717.72
8.2.90.0000.00819.18
8.2.80.0000.00817.97
8.2.70.0120.00017.25
8.2.60.0040.00417.92
8.2.50.0000.00818.07
8.2.40.0080.00019.79
8.2.30.0040.00418.00
8.2.20.0080.00017.69
8.2.10.0020.00518.05
8.2.00.0040.00417.75
8.1.270.0040.00423.87
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0030.00623.59
8.1.230.0070.00419.20
8.1.220.0050.00317.74
8.1.210.0000.00818.77
8.1.200.0030.00616.99
8.1.190.0080.00017.10
8.1.180.0060.00318.10
8.1.170.0040.00418.58
8.1.160.0050.00321.95
8.1.150.0050.00318.43
8.1.140.0040.00417.44
8.1.130.0000.00717.78
8.1.120.0000.00717.28
8.1.110.0000.00717.37
8.1.100.0050.00217.32
8.1.90.0000.00717.34
8.1.80.0040.00417.33
8.1.70.0000.00717.15
8.1.60.0040.00417.50
8.1.50.0040.00417.36
8.1.40.0000.00717.36
8.1.30.0050.00317.31
8.1.20.0070.00017.57
8.1.10.0000.00717.51
8.1.00.0030.00517.50
8.0.300.0000.00718.77
8.0.290.0040.00417.16
8.0.280.0000.00818.39
8.0.270.0000.00717.07
8.0.260.0040.00417.12
8.0.250.0040.00416.90
8.0.240.0040.00416.96
8.0.230.0000.00716.82
8.0.220.0080.00016.94
8.0.210.0080.00016.92
8.0.200.0060.00016.92
8.0.190.0030.00616.80
8.0.180.0050.00216.93
8.0.170.0030.00516.97
8.0.160.0000.00716.95
8.0.150.0040.00416.93
8.0.140.0080.00016.76
8.0.130.0040.00413.36
8.0.120.0050.00316.87
8.0.110.0040.00416.85
8.0.100.0080.00017.00
8.0.90.0030.00316.68
8.0.80.0090.00616.85
8.0.70.0050.00216.88
8.0.60.0020.00516.68
8.0.50.0070.00016.89
8.0.30.0080.01017.08
8.0.20.0150.00517.40
8.0.10.0090.00016.87
8.0.00.0100.01216.64
7.4.330.0030.00315.00
7.4.320.0030.00316.40
7.4.300.0000.00616.53
7.4.290.0000.00716.54
7.4.280.0060.00016.35
7.4.270.0000.00816.56
7.4.260.0000.00716.36
7.4.250.0040.00416.55
7.4.240.0040.00316.55
7.4.230.0070.00016.52
7.4.220.0060.01116.61
7.4.210.0060.00816.57
7.4.200.0070.00016.44
7.4.190.0030.00316.39
7.4.160.0120.00416.46
7.4.150.0090.00917.40
7.4.140.0100.00717.86
7.4.130.0070.01216.57
7.4.120.0090.00916.69
7.4.110.0150.00616.51
7.4.100.0120.00616.46
7.4.90.0090.01216.30
7.4.80.0090.00919.39
7.4.70.0060.01616.54
7.4.60.0130.01016.61
7.4.50.0000.00916.27
7.4.40.0110.00616.30
7.4.30.0080.00816.21
7.4.00.0030.01214.75
7.3.330.0000.00613.18
7.3.320.0000.00713.12
7.3.310.0000.00716.23
7.3.300.0060.00316.29
7.3.290.0090.00616.27
7.3.280.0090.00816.32
7.3.270.0060.01217.40
7.3.260.0060.00916.47
7.3.250.0140.00616.53
7.3.240.0110.00516.22
7.3.230.0100.00616.39
7.3.210.0070.01016.31
7.3.200.0150.00819.39
7.3.190.0070.00916.34
7.3.180.0070.01316.32
7.3.170.0090.00616.41
7.3.160.0070.01116.38
7.3.120.0060.00914.80
7.3.110.0000.01514.73
7.3.100.0110.00314.80
7.3.90.0030.01414.84
7.3.80.0000.01614.49
7.3.70.0060.00914.64
7.3.60.0060.00914.50
7.3.50.0030.00714.24
7.3.40.0070.00414.80
7.3.30.0030.01314.61
7.3.20.0040.01116.66
7.3.10.0060.00616.67
7.3.00.0050.00916.62
7.2.330.0130.01016.66
7.2.320.0100.00716.34
7.2.310.0070.01116.64
7.2.300.0110.00716.70
7.2.290.0080.00816.63
7.2.240.0030.01214.91
7.2.230.0120.00314.70
7.2.220.0110.00014.98
7.2.210.0070.01114.88
7.2.200.0080.00414.85
7.2.190.0030.01315.00
7.2.180.0070.01114.84
7.2.170.0040.01114.89
7.2.160.0100.00614.68
7.2.150.0030.01616.36
7.2.140.0100.00316.52
7.2.130.0080.00616.60
7.2.120.0040.00916.65
7.2.110.0050.00916.57
7.2.100.0070.00716.54
7.2.90.0060.00716.80
7.2.80.0090.00516.78
7.2.70.0030.01216.67
7.2.60.0040.00916.70
7.2.50.0060.00716.73
7.2.40.0080.00816.65
7.2.30.0070.00616.70
7.2.20.0070.00716.79
7.2.10.0070.01016.73
7.2.00.0080.00817.63
7.1.330.0030.01315.79
7.1.320.0030.01015.44
7.1.310.0040.01115.70
7.1.300.0060.00615.46
7.1.290.0080.00815.32
7.1.280.0120.00015.52
7.1.270.0030.00715.68
7.1.260.0040.01115.65
7.1.250.0070.00715.57
7.1.240.0070.01015.76
7.1.230.0060.00615.37
7.1.220.0000.00715.61
7.1.210.0130.00015.61
7.1.200.0060.00615.60
7.1.190.0060.00615.72
7.1.180.0060.00615.68
7.1.170.0000.01115.75
7.1.160.0090.00615.38
7.1.150.0100.00315.72
7.1.140.0040.00415.63
7.1.130.0100.00315.76
7.1.120.0070.00415.38
7.1.110.0120.00315.53
7.1.100.0070.00416.63
7.1.90.0070.00715.79
7.1.80.0060.00915.66
7.1.70.0020.01216.25
7.1.60.0040.01517.58
7.1.50.0070.01216.30
7.1.40.0130.00015.34
7.1.30.0080.00315.67
7.1.20.0100.00315.62
7.1.10.0000.01215.64
7.1.00.0020.04319.14
7.0.330.0030.01015.24
7.0.320.0100.00315.49
7.0.310.0100.00315.21
7.0.300.0060.00615.25
7.0.290.0040.01115.50
7.0.280.0030.01214.94
7.0.270.0040.00415.42
7.0.260.0030.01015.02
7.0.250.0040.00815.38
7.0.240.0110.00415.50
7.0.230.0070.00715.44
7.0.220.0140.00015.16
7.0.210.0140.00015.07
7.0.200.0070.01015.82
7.0.190.0070.00715.24
7.0.180.0030.00715.06
7.0.170.0060.00615.35
7.0.160.0070.00415.44
7.0.150.0070.00715.41
7.0.140.0020.04318.63
7.0.130.0060.00615.11
7.0.120.0060.00815.24
7.0.110.0100.00015.25
7.0.100.0060.00615.31
7.0.90.0030.01215.12
7.0.80.0040.01115.39
7.0.70.0000.01515.34
7.0.60.0100.04217.54
7.0.50.0030.04216.57
7.0.40.0030.03516.69
7.0.30.0290.02416.66
7.0.20.0200.04316.65
7.0.10.0170.03816.57
7.0.00.0030.02816.72
5.6.380.0110.00414.28
5.6.370.0080.00314.02
5.6.360.0080.00314.18
5.6.350.0040.00814.14
5.6.340.0030.00914.29
5.6.330.0150.00313.92
5.6.320.0070.00714.07
5.6.310.0060.00913.67
5.6.300.0000.00914.12
5.6.290.0030.00613.83
5.6.280.0010.04317.67
5.6.270.0070.00714.21
5.6.260.0030.00614.41
5.6.250.0070.00713.98
5.6.240.0030.01014.06
5.6.230.0120.00314.01
5.6.220.0070.00713.97
5.6.210.0080.03817.28
5.6.200.0050.02816.04
5.6.190.0050.03317.16
5.6.180.0180.04117.36
5.6.170.0140.05017.37
5.6.160.0030.03717.23
5.6.150.0050.02116.13
5.6.140.0050.03716.11
5.6.130.0020.03216.10
5.6.120.0080.04117.50
5.6.110.0080.04517.64
5.6.100.0100.03817.54
5.6.90.0080.04517.61
5.6.80.0120.04017.31
5.6.70.1570.02417.24
5.6.60.0070.01013.82
5.6.50.0090.00614.16
5.6.40.0070.00713.99
5.6.30.0070.00714.04
5.6.20.0030.01314.09
5.6.10.0000.00813.92
5.6.00.0080.00613.99
5.5.380.0030.00311.18
5.5.370.0030.00511.18
5.5.360.0040.00811.18
5.5.350.0070.04215.75
5.5.340.0050.04314.60
5.5.330.0070.02815.79
5.5.320.0100.02315.84
5.5.310.0250.02815.73
5.5.300.0070.02214.52
5.5.290.0070.04514.59
5.5.280.0050.04615.95
5.5.270.0020.03215.94
5.5.260.0030.04815.99
5.5.250.0070.01915.93
5.5.240.0070.03815.72
5.5.230.0060.00611.18
5.5.220.0030.00911.18
5.5.210.0000.00611.18
5.5.200.0000.00811.18
5.5.190.0000.00611.18
5.5.180.0030.00711.18
5.5.170.0070.00311.18
5.5.160.0040.00411.18
5.5.150.0050.00511.18
5.5.140.0060.00311.18
5.5.130.0030.00311.18
5.5.120.0000.00811.18
5.5.110.0050.00211.18
5.5.100.0100.00011.18
5.5.90.0040.01111.18
5.5.80.0090.00611.18
5.5.70.0000.00711.18
5.5.60.0100.00311.18
5.5.50.0030.00311.18
5.5.40.0070.00311.18
5.5.30.0030.00611.18
5.5.20.0070.00711.18
5.5.10.0100.00311.18
5.5.00.0030.01011.18
5.4.450.0120.03115.35
5.4.440.0130.03815.31
5.4.430.0120.03015.14
5.4.420.0160.02515.24
5.4.410.0150.02815.28
5.4.400.0210.02815.24
5.4.390.0180.02515.20
5.4.380.0100.02714.93
5.4.370.0100.02814.96
5.4.360.0040.03114.93
5.4.350.0110.02814.94
5.4.340.0130.03514.95
5.4.330.0000.01111.18
5.4.320.0040.02311.82
5.4.310.0020.02711.82
5.4.300.0040.02511.82
5.4.290.0060.02511.81
5.4.280.0050.02011.76
5.4.270.0040.02511.76
5.4.260.0070.02411.76
5.4.250.0070.02611.76
5.4.240.0090.02711.76
5.4.230.0080.02711.75
5.4.220.0070.03111.75
5.4.210.0060.02711.75
5.4.200.0060.02311.75
5.4.190.0040.02511.75
5.4.180.0050.02311.75
5.4.170.0050.02411.76
5.4.160.0080.02611.76
5.4.150.0060.02211.75
5.4.140.0070.03411.60
5.4.130.0090.02711.59
5.4.120.0090.02011.57
5.4.110.0060.03111.57
5.4.100.0080.02811.57
5.4.90.0100.02711.57
5.4.80.0050.02111.56
5.4.70.0080.01811.56
5.4.60.0040.02211.56
5.4.50.0050.02511.57
5.4.40.0020.02311.56
5.4.30.0080.02011.56
5.4.20.0050.02011.56
5.4.10.0050.02711.56
5.4.00.0050.02411.30
5.3.290.0050.02211.99
5.3.280.0070.02311.94
5.3.270.0080.02011.95
5.3.260.0030.02411.95
5.3.250.0040.02211.95
5.3.240.0060.02211.95
5.3.230.0050.02111.94
5.3.220.0040.02311.93
5.3.210.0090.01911.93
5.3.200.0050.02111.93
5.3.190.0030.02411.93
5.3.180.0050.02211.93
5.3.170.0080.02211.92
5.3.160.0080.01911.93
5.3.150.0080.02011.92
5.3.140.0080.02311.92
5.3.130.0070.02311.92
5.3.120.0050.02511.92
5.3.110.0040.02611.92
5.3.100.0050.02811.65
5.3.90.0030.02211.63
5.3.80.0050.02311.63
5.3.70.0050.02011.63
5.3.60.0050.02211.62
5.3.50.0040.02811.59
5.3.40.0070.02611.59
5.3.30.0050.02311.56
5.3.20.0080.01911.45
5.3.10.0100.03211.43
5.3.00.0040.02211.43
5.2.170.0090.01810.18
5.2.160.0070.01910.18
5.2.150.0050.01910.18
5.2.140.0040.02510.18
5.2.130.0040.01910.16
5.2.120.0060.02010.16
5.2.110.0070.01510.16
5.2.100.0040.01710.16
5.2.90.0040.02110.16
5.2.80.0050.01810.16
5.2.70.0050.01810.15
5.2.60.0030.02110.13
5.2.50.0060.01810.12
5.2.40.0020.02510.11
5.2.30.0100.01910.09
5.2.20.0040.02710.09
5.2.10.0040.01910.05
5.2.00.0050.0179.98
5.1.60.0060.0189.62
5.1.50.0060.0169.62
5.1.40.0040.0219.61
5.1.30.0060.0389.79
5.1.20.0060.0199.80
5.1.10.0030.0229.66
5.1.00.0050.0299.66
5.0.50.0040.0148.91
5.0.40.0050.0098.84
5.0.30.0060.0168.74
5.0.20.0030.0118.72
5.0.10.0010.0148.71
5.0.00.0030.0198.71
4.4.90.0030.0097.98
4.4.80.0020.0107.96
4.4.70.0080.0227.96
4.4.60.0010.0107.96
4.4.50.0010.0127.97
4.4.40.0040.0177.94
4.4.30.0020.0097.97
4.4.20.0040.0098.01
4.4.10.0030.0118.01
4.4.00.0040.0177.97
4.3.110.0040.0127.92
4.3.100.0020.0107.92
4.3.90.0030.0117.90
4.3.80.0020.0157.88
4.3.70.0020.0127.90
4.3.60.0030.0127.90
4.3.50.0020.0127.90
4.3.40.0020.0197.86
4.3.30.0010.0137.24
4.3.20.0040.0117.22
4.3.10.0030.0107.20
4.3.00.0020.0169.21

preferences:
42.47 ms | 400 KiB | 5 Q