3v4l.org

run code in 500+ PHP versions simultaneously
<?php $needle = "/"; $haystack = "/wamp64\www\Prestashop\En ligne\fac simili/modules/mondialrelay/views/js/admin/hook/order.js"; $replace = "\\"; $pos = 0; echo $replace; // $test = strlen($needle); // echo substr_replace($haystack, $replace, $pos, strlen($needle)); // echo ' - $test = '. $test; ?>

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.5.30.0270.01116.73
8.5.20.0310.00816.73
8.5.10.0330.00716.73
8.5.00.0130.00618.33
8.4.180.0300.00919.55
8.4.170.0230.00919.62
8.4.160.0190.00219.52
8.4.150.0200.00619.57
8.4.140.0310.00617.57
8.4.130.0410.01017.35
8.4.120.0330.00617.89
8.4.110.0350.00917.74
8.4.100.0300.00717.82
8.4.90.0370.00717.76
8.4.80.0290.01317.77
8.4.70.0360.00917.59
8.4.60.0310.00617.60
8.4.50.0210.00517.44
8.4.40.0330.00917.45
8.4.30.0320.01317.49
8.4.20.0400.00517.55
8.4.10.0410.00917.44
8.3.300.0180.00519.92
8.3.290.0390.00817.96
8.3.280.0320.00918.14
8.3.270.0300.00516.73
8.3.260.0270.01016.73
8.3.250.0260.00816.73
8.3.240.0320.00716.73
8.3.230.0320.01016.73
8.3.220.0330.00716.73
8.3.210.0310.00916.73
8.3.200.0350.00416.73
8.3.190.0390.00616.73
8.3.180.0400.00916.73
8.3.170.0370.00916.73
8.3.160.0360.00816.73
8.3.150.0300.00716.73
8.3.140.0170.00416.73
8.3.130.0110.00716.73
8.3.120.0350.00416.73
8.3.110.0300.00816.73
8.3.100.0360.00816.73
8.3.90.0370.00616.73
8.3.80.0380.00716.73
8.3.70.0380.00516.73
8.3.60.0310.00916.73
8.3.50.0380.01016.73
8.3.40.0360.01017.84
8.3.30.0300.00717.66
8.3.20.0300.00617.79
8.3.10.0290.00617.75
8.3.00.0270.00817.53

preferences:
50.99 ms | 698 KiB | 5 Q