3v4l.org

run code in 300+ PHP versions simultaneously
<?php $rates = array( array("serviceType" => 1, "unit" => "word", "unitRate" => "0.05000"), array("serviceType" => 2, "unit" => "word", "unitRate" => "0.02500"), array("serviceType" => 3, "unit" => "hour", "unitRate" => "15.0000"), array("serviceType" => 4, "unit" => "hour", "unitRate" => "15.0000"), array("serviceType" => 5, "unit" => "hour", "unitRate" => "25.0000"), array("serviceType" => 1, "unit" => "word", "unitRate" => "0.04000"), array("serviceType" => 6, "unit" => "minute", "unitRate" => "7.0000"), array("serviceType" => 7, "unit" => "minute", "unitRate" => "1.5000"), array("serviceType" => 8, "unit" => "minute", "unitRate" => "0.28330") ); foreach($rates as $rate){ $deduplicated_rates[$rate['serviceType'].$rate['unit']] = $rate; } var_dump($rates); var_dump(array_values($deduplicated_rates));

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.4.120.0110.01020.51
8.4.110.0130.00819.00
8.4.100.0040.00517.56
8.4.90.0100.01118.33
8.4.80.0110.00917.52
8.4.70.0110.00917.63
8.4.60.0130.00818.74
8.4.50.0150.00719.54
8.4.40.0030.00518.51
8.4.30.0130.00718.55
8.4.20.0060.00319.66
8.4.10.0090.00019.25
8.3.250.0120.00718.99
8.3.240.0120.00816.60
8.3.230.0140.00616.57
8.3.220.0140.00517.05
8.3.210.0150.00416.59
8.3.200.0040.00516.57
8.3.190.0120.00719.00
8.3.180.0120.00916.47
8.3.170.0040.00420.38
8.3.160.0100.01017.31
8.3.150.0100.01016.96
8.3.140.0030.00616.40
8.3.130.0090.00918.34
8.3.120.0040.00418.93
8.3.110.0170.00318.14
8.3.100.0080.00016.51
8.3.90.0090.00926.77
8.3.80.0030.00616.63
8.3.70.0160.00316.75
8.3.60.0390.01225.92
8.3.50.0140.00725.92
8.3.40.0310.00625.92
8.3.30.0340.00325.92
8.3.20.0290.01025.92
8.3.10.0280.00725.92
8.3.00.0250.00925.92
8.2.290.0070.00420.58
8.2.280.0090.01220.16
8.2.270.0070.01117.17
8.2.260.0080.00016.53
8.2.250.0080.00816.75
8.2.240.0070.01317.41
8.2.230.0040.00420.94
8.2.220.0030.00524.06
8.2.210.0110.00726.77
8.2.200.0000.01216.75
8.2.190.0190.00016.58
8.2.180.0260.01125.92
8.2.170.0270.00625.92
8.2.160.0200.01425.92
8.2.150.0270.01025.92
8.2.140.0360.00025.92
8.2.130.0350.00425.92
8.2.120.0280.00925.92
8.2.110.0300.01025.92
8.2.100.0260.00925.92
8.2.90.0280.00425.92
8.2.80.0250.00925.92
8.2.70.0310.00325.92
8.2.60.0270.00825.92
8.2.50.0340.00425.92
8.2.40.0230.00625.92
8.2.30.0250.00725.92
8.2.20.0270.00325.92
8.2.10.0240.00825.92
8.2.00.0220.01225.92
8.1.330.0110.00720.26
8.1.320.0110.01116.03
8.1.310.0070.00316.75
8.1.300.0080.00416.55
8.1.290.0060.00330.84
8.1.280.0080.00825.92
8.1.270.0390.00025.92
8.1.260.0320.00425.92
8.1.250.0370.01025.92
8.1.240.0330.00425.92
8.1.230.0250.00625.92
8.1.220.0290.00725.92
8.1.210.0270.00825.92
8.1.200.0260.00725.92
8.1.190.0220.01625.92
8.1.180.0240.01025.92
8.1.170.0210.01825.92
8.1.160.0220.00925.92
8.1.150.0270.00725.92
8.1.140.0190.01025.92
8.1.130.0240.00525.92
8.1.120.0260.00425.92
8.1.110.0310.00325.92
8.1.100.0260.00625.92
8.1.90.0160.01325.92
8.1.80.0250.00725.92
8.1.70.0240.00625.92
8.1.60.0270.00925.92
8.1.50.0320.00425.92
8.1.40.0250.00825.92
8.1.30.0260.00525.92
8.1.20.0240.00925.92
8.1.10.0340.00425.92
8.1.00.0320.00925.92

preferences:
27.66 ms | 403 KiB | 5 Q