3v4l.org

run code in 500+ PHP versions simultaneously
<?php declare(strict_types=1); $processor = compose( htmlentities(...), str_split(...), fn ($x) => array_map(strtoupper(...), $x), fn ($x) => array_filter($x, fn ($v) => $v != 'O'), ); $data = "Hello World!"; var_dump( $data, $processor($data), ); // polyfill function compose(...$calls): Closure { $next = fn ($data) => $data; foreach ($calls as $prev) { $next = fn ($data) => $prev($next($data)); } return $next; }

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.90.0100.00817.80
8.5.80.0100.00917.71
8.5.70.0120.00617.56
8.5.60.0100.00717.72
8.5.50.0080.00617.51
8.5.40.0060.00418.21
8.5.30.0110.00719.18
8.5.20.0120.00819.34
8.5.10.0180.00616.57
8.5.00.0130.00918.29
8.4.240.0130.00919.33
8.4.230.0080.00719.51
8.4.220.0110.00520.46
8.4.210.0100.00920.41
8.4.200.0150.00419.32
8.4.190.0090.00419.66
8.4.180.0120.01219.55
8.4.170.0150.00821.80
8.4.160.0140.00821.75
8.4.150.0080.00818.42
8.4.140.0120.00918.62
8.4.130.0140.00719.04
8.4.120.0120.00621.94
8.4.110.0100.00819.27
8.4.100.0100.00618.71
8.4.90.0070.00320.16
8.4.80.0110.00419.51
8.4.70.0280.00418.87
8.4.60.0260.00717.98
8.4.50.0230.00818.05
8.4.40.0260.00618.02
8.4.30.0250.00917.98
8.4.20.0290.00517.89
8.4.10.0280.00817.96
8.3.330.0130.01018.42
8.3.320.0090.00718.51
8.3.310.0100.00718.50
8.3.300.0110.00919.59
8.3.290.0150.00719.49
8.3.280.0140.00918.49
8.3.270.0120.00816.63
8.3.260.0120.01016.49
8.3.250.0110.01016.63
8.3.240.0100.00616.99
8.3.230.0120.00716.66
8.3.220.0130.00917.66
8.3.210.0260.00717.42
8.3.200.0230.00917.42
8.3.190.0170.00417.39
8.3.180.0190.00617.39
8.3.170.0240.00517.40
8.3.160.0180.00517.45
8.3.150.0300.00517.40
8.3.140.0280.00917.37
8.3.130.0260.00917.40
8.3.120.0260.00917.43
8.3.110.0270.00717.43
8.3.100.0290.00717.45
8.3.90.0290.00917.45
8.3.80.0310.00617.42
8.3.70.0280.00917.52
8.3.60.0300.01017.43
8.3.50.0200.00717.42
8.3.40.0260.00718.00
8.3.30.0210.00417.98
8.3.20.0180.00718.05
8.3.10.0210.00418.03
8.3.00.0140.00517.96
8.2.330.0170.00718.08
8.2.320.0130.00818.12
8.2.310.0130.00918.09
8.2.300.0220.00818.21
8.2.290.0210.00617.75
8.2.280.0240.00417.40
8.2.270.0260.00717.32
8.2.260.0220.00817.44
8.2.250.0150.00417.41
8.2.240.0250.00317.30
8.2.230.0230.00517.33
8.2.220.0240.00517.38
8.2.210.0220.00717.31
8.2.200.0270.00817.44
8.2.190.0270.00317.32
8.2.180.0280.00617.37
8.2.170.0320.00917.93
8.2.160.0310.00718.13
8.2.150.0230.00618.11
8.2.140.0280.00818.02
8.2.130.0360.01018.07
8.2.120.0350.00618.10
8.2.110.0300.00718.04
8.2.100.0220.00618.05
8.2.90.0310.00717.92
8.2.80.0360.00418.05
8.2.70.0330.00818.00
8.2.60.0180.00918.05
8.2.50.0250.00818.02
8.2.40.0310.00718.03
8.2.30.0300.00617.98
8.2.20.0280.00917.93
8.2.10.0300.00917.94
8.2.00.0290.01018.05
8.1.340.0100.01021.57

preferences:
46.88 ms | 933 KiB | 5 Q