3v4l.org

run code in 500+ PHP versions simultaneously
<?php /** @return class-string */ function getClassName(object $class): string { return $class::class; }; /** @param list $data */ function fromArrays(array $data, object $object): mixed { $className = getClassName($object); $callback = [$className, 'from']; if (!is_callable($callback)) { throw new RuntimeException('bad callable'); } return forward_static_call_array($callback, $data); } class A { public static function from() { var_dump(__METHOD__); } } fromArrays([], new A);

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.0120.00716.92
8.5.80.0050.00416.85
8.5.70.0220.00717.67
8.5.60.0130.00416.98
8.5.50.0120.00616.61
8.5.30.0060.01021.21
8.5.20.0090.00919.99
8.5.10.0120.00916.87
8.5.00.0120.00919.91
8.4.240.0090.01119.47
8.4.230.0130.00919.42
8.4.220.0220.00919.40
8.4.210.0080.01119.63
8.4.180.0100.01125.73
8.4.170.0140.00723.70
8.4.160.0130.00923.85
8.4.150.0070.00516.82
8.4.140.0130.00917.52
8.4.130.0150.00517.80
8.4.120.0110.00920.47
8.4.110.0160.00422.39
8.4.100.0100.00617.60
8.4.90.0110.00917.87
8.4.80.0120.00817.92
8.4.70.0100.01119.60
8.4.60.0130.00618.75
8.4.50.0120.00720.68
8.4.40.0130.00717.95
8.4.30.0110.00418.85
8.4.20.0070.01319.42
8.4.10.0100.01019.72
8.3.330.0140.00818.35
8.3.320.0070.00218.40
8.3.310.0120.00818.25
8.3.300.0070.00520.81
8.3.290.0120.00820.88
8.3.280.0140.00718.37
8.3.270.0130.00616.66
8.3.260.0100.00816.66
8.3.250.0120.00718.79
8.3.240.0110.00916.70
8.3.230.0120.00816.71
8.3.220.0100.00717.02
8.3.210.0170.00216.54
8.3.200.0030.00616.70
8.3.190.0040.00517.29
8.3.180.0090.00918.73
8.3.170.0080.00620.73
8.3.160.0140.00417.10
8.3.150.0130.00617.10
8.3.140.0120.00620.73
8.3.130.0040.00418.21
8.3.120.0120.00018.91
8.3.110.0090.00020.94
8.3.100.0000.01024.06
8.3.90.0020.00526.77
8.3.80.0060.00318.43
8.3.70.0090.00616.50
8.3.60.0120.00316.72
8.3.50.0160.00616.74
8.3.40.0070.01019.72
8.3.30.0100.01319.04
8.3.20.0090.00622.08
8.3.10.0080.01321.80
8.3.00.0200.00618.57
8.2.320.0110.01218.11
8.2.310.0100.00918.09
8.2.300.0120.00817.90
8.2.290.0110.00820.36
8.2.280.0120.00618.27
8.2.270.0060.01318.83
8.2.260.0140.00017.28
8.2.250.0040.00418.19
8.2.240.0080.00018.88
8.2.230.0090.01222.58
8.2.220.0030.00737.54
8.2.210.0160.00326.77
8.2.200.0060.00318.29
8.2.190.0070.00716.75
8.2.180.0080.00816.38
8.2.170.0230.00318.77
8.2.160.0130.01020.14
8.2.150.0200.01019.13
8.2.140.0130.00720.39
8.2.130.0190.00819.09
8.2.120.0130.01019.40
8.2.110.0140.00719.11
8.2.100.0160.00619.27
8.2.90.0280.00018.78
8.2.80.0140.00719.22
8.2.70.0170.00718.64
8.2.60.0200.00618.86
8.2.50.0330.00019.02
8.2.40.0170.01318.66
8.2.30.0270.00318.64
8.2.20.0170.01718.75
8.2.10.0240.00418.78
8.2.00.0170.00718.70
8.1.340.0110.00921.81
8.1.330.0110.00818.16
8.1.320.0170.01416.00
8.1.310.0070.01016.76
8.1.300.0160.00317.93
8.1.290.0060.00330.84
8.1.280.0090.00925.92
8.1.270.0100.00322.06
8.1.260.0160.00022.18
8.1.250.0080.00622.20
8.1.240.0180.00718.59
8.1.230.0240.00018.43
8.1.220.0180.00418.76
8.1.210.0080.00818.57
8.1.200.0090.00618.75
8.1.190.0120.00418.68
8.1.180.0100.00718.32
8.1.170.0120.00318.64
8.1.160.0130.00318.60
8.1.150.0130.00318.88
8.1.140.0090.00618.77
8.1.130.0060.00918.86
8.1.120.0070.01018.55
8.1.110.0170.00018.51
8.1.100.0110.00419.78
8.1.90.0090.00618.57
8.1.80.0080.00819.61
8.1.70.0150.00018.78
8.1.60.0140.00318.72
8.1.50.0100.00718.40
8.1.40.0200.00318.63
8.1.30.0150.00018.96
8.1.20.0080.00819.77
8.1.10.0100.00718.54
8.1.00.0140.00718.48
8.0.100.0260.00717.07
7.4.150.0270.00416.52
7.3.00.0230.00918.01
7.2.100.0260.01018.37
7.1.00.0290.00817.18
7.0.00.0270.00616.98

preferences:
44.93 ms | 1063 KiB | 5 Q