3v4l.org

run code in 300+ PHP versions simultaneously
<?php function encodePost(array $post, $print=false){ $_post_string = array(); foreach($post as $key=>$value){ if(!is_array($value)){ $_post_string[] = $key."=".urlencode($value); }else{ foreach($value as $k=>$v){ $_post_string[] = $key."[]=".urlencode($v); } } } $_post_string = implode("&",$_post_string); if($print){ echo "<br/>".$_post_string."<br/>"; } return $_post_string; } $post = [ 'hash' => '62d417c8554711d322887588ed8ab3dd4636c8d5', 'product' => PROD_LITIGANT_ALERT_NAME, 'hits' => 20, 'rows' => 1000, 'billable_rows' => 850, 'errors' => [ '567 - Unknown zipcode [ignoring]', '23 - Invalid radius format [using default]', '150 - Data does not match header count, 1 extra columns [not searching]' ], 'submitted' => '2018-04-25 15:24:32', 'completed' => '2018-04-25 16:01:12' ]; encodePost($post, true);

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.0040.01118.31
8.3.50.0150.00616.30
8.3.40.0150.00318.64
8.3.30.0110.00418.54
8.3.20.0070.00021.73
8.3.10.0060.00323.61
8.3.00.0050.00319.56
8.2.180.0120.00916.38
8.2.170.0150.00622.96
8.2.160.0130.00322.00
8.2.150.0050.00324.18
8.2.140.0030.00524.66
8.2.130.0030.00619.45
8.2.120.0040.00426.35
8.2.110.0050.00519.30
8.2.100.0040.00717.91
8.2.90.0030.00518.03
8.2.80.0040.00418.03
8.2.70.0080.00017.93
8.2.60.0030.00617.93
8.2.50.0050.00318.28
8.2.40.0000.00720.59
8.2.30.0000.00719.57
8.2.20.0000.00718.09
8.2.10.0040.00418.02
8.2.00.0080.00018.09
8.1.280.0040.01125.92
8.1.270.0040.00423.79
8.1.260.0030.00526.35
8.1.250.0050.00328.09
8.1.240.0090.00022.74
8.1.230.0000.01220.95
8.1.220.0000.00817.79
8.1.210.0000.00819.03
8.1.200.0080.00017.22
8.1.190.0080.00017.25
8.1.180.0080.00018.10
8.1.170.0000.00818.59
8.1.160.0040.00418.89
8.1.150.0040.00418.92
8.1.140.0080.00017.66
8.1.130.0070.00018.96
8.1.120.0000.00717.43
8.1.110.0040.00417.46
8.1.100.0030.00317.44
8.1.90.0040.00417.43
8.1.80.0040.00317.45
8.1.70.0070.00017.42
8.1.60.0040.00417.50
8.1.50.0030.00617.36
8.1.40.0040.00417.50
8.1.30.0040.00417.55
8.1.20.0050.00317.56
8.1.10.0060.00317.58
8.1.00.0000.00817.50
8.0.300.0070.00020.02
8.0.290.0050.00316.75
8.0.280.0000.00818.45
8.0.270.0070.00017.29
8.0.260.0050.00217.28
8.0.250.0060.00316.93
8.0.240.0000.00717.08
8.0.230.0030.00717.07
8.0.220.0050.00216.89
8.0.210.0000.00716.98
8.0.200.0060.00016.95
8.0.190.0000.00817.02
8.0.180.0070.00017.02
8.0.170.0030.00616.99
8.0.160.0070.00016.91
8.0.150.0000.00817.00
8.0.140.0030.00716.87
8.0.130.0030.00313.36
8.0.120.0050.00216.84
8.0.110.0040.00416.98
8.0.100.0040.00417.00
8.0.90.0040.00416.83
8.0.80.0060.01317.00
8.0.70.0040.00416.89
8.0.60.0050.00316.95
8.0.50.0000.00716.80
8.0.30.0100.00716.98
8.0.20.0130.00617.40
8.0.10.0040.00416.82
8.0.00.0070.01016.87
7.4.330.0050.00015.55
7.4.320.0030.00316.68
7.4.300.0000.00716.62
7.4.290.0070.00016.58
7.4.280.0050.00316.62
7.4.270.0000.00816.66
7.4.260.0080.00016.52
7.4.250.0040.00416.59
7.4.240.0040.00416.62
7.4.230.0040.00416.74
7.4.220.0050.00216.71
7.4.210.0070.00716.63
7.4.200.0030.00316.54
7.4.160.0090.00916.51
7.4.140.0120.00717.86
7.4.130.0110.00816.45
7.4.120.0110.01016.55
7.4.110.0070.01016.56
7.4.100.0130.01016.62
7.4.90.0120.00616.54
7.4.80.0110.00719.39
7.4.70.0110.00716.63
7.4.60.0070.01016.38
7.4.50.0100.00516.63
7.4.40.0130.00316.32
7.4.00.0100.00615.21
7.3.330.0030.00313.36
7.3.320.0060.00013.40
7.3.310.0040.00416.26
7.3.300.0030.00316.25
7.3.290.0030.00316.43
7.3.280.0100.00516.37
7.3.260.0080.01216.50
7.3.240.0120.00516.64
7.3.230.0090.00916.68
7.3.210.0080.00816.55
7.3.200.0110.00516.48
7.3.190.0060.00916.37
7.3.180.0100.00616.51
7.3.170.0080.01416.67
7.3.160.0060.00916.48
7.2.330.0070.01116.67
7.2.320.0030.01716.80
7.2.310.0060.01516.71
7.2.300.0120.00616.67
7.2.290.0140.00416.73
7.2.60.0140.01416.30
7.2.50.0160.00816.81
7.2.40.1320.01117.80
7.2.30.0540.01118.15
7.2.20.0850.01318.27
7.2.10.0510.01118.23
7.2.00.0670.01218.15
7.1.200.0040.00815.96
7.1.160.0580.01117.00
7.1.150.0940.01116.69
7.1.140.0600.01417.11
7.1.130.0570.01017.00
7.1.120.0470.01116.81
7.1.110.0410.01216.43
7.1.100.0440.01116.49
7.1.90.0460.00916.33
7.1.80.0660.00916.14
7.1.70.0660.00615.49
7.1.60.0650.01333.41
7.1.50.0670.01433.04
7.1.40.0820.01232.66
7.1.30.0770.01532.69
7.1.20.0790.01632.73
7.1.10.0550.01414.69
7.1.00.0740.01514.95

preferences:
64.34 ms | 401 KiB | 5 Q