3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace SomeApp2 { final class UseReplacedFunction { function run() { echo strlen('asdf'); } } function strlen() { echo 'test'; } $obj = new UseReplacedFunction(); $obj->run(); }

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.0030.00520.48
8.4.110.0110.00918.98
8.4.100.0100.00817.94
8.4.90.0060.00617.72
8.4.80.0060.00319.30
8.4.70.0050.00419.71
8.4.60.0130.00520.59
8.4.50.0190.00417.53
8.4.40.0190.00717.45
8.4.30.0200.00517.63
8.4.20.0180.00817.42
8.4.10.0160.00617.54
8.3.250.0130.00618.83
8.3.240.0130.00616.48
8.3.230.0140.00516.51
8.3.220.0130.00616.41
8.3.210.0020.00716.39
8.3.200.0040.00716.53
8.3.190.0150.00716.46
8.3.180.0160.00716.38
8.3.170.0180.00616.45
8.3.160.0190.00516.38
8.3.150.0240.00116.43
8.3.140.0170.00516.29
8.3.130.0180.00416.36
8.3.120.0150.00616.52
8.3.110.0150.00516.55
8.3.100.0220.00116.54
8.3.90.0200.00416.25
8.3.80.0210.00416.25
8.3.70.0210.00416.49
8.3.60.0170.00516.79
8.3.50.0170.00516.52
8.3.40.0190.00317.28
8.3.30.0150.00417.36
8.3.20.0130.00917.46
8.3.10.0170.00317.27
8.3.00.0060.00717.16
8.2.290.0150.00418.68
8.2.280.0140.00416.79
8.2.270.0120.00916.39
8.2.260.0160.00416.73
8.2.250.0190.00216.50
8.2.240.0150.00516.26
8.2.230.0130.00416.66
8.2.220.0130.00616.34
8.2.210.0150.00516.35
8.2.200.0120.00616.32
8.2.190.0170.00416.50
8.2.180.0140.00616.54
8.2.170.0160.00717.39
8.2.160.0150.00617.52
8.2.150.0160.00617.55
8.2.140.0170.00217.36
8.2.130.0160.00617.48
8.2.120.0190.00217.50
8.2.110.0180.00317.73
8.2.100.0150.00617.39
8.2.90.0140.00417.59
8.2.80.0190.00217.24
8.2.70.0160.00617.29
8.2.60.0140.00717.23
8.2.50.0140.00517.51
8.2.40.0150.00517.15
8.2.30.0150.00517.52
8.2.20.0170.00217.41
8.2.10.0200.00217.20
8.2.00.0160.00317.38

preferences:
25.04 ms | 403 KiB | 5 Q