3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { private function __invoke() { echo "a"; }};//function() {}; $a = new A; //$a = function() { echo "b";}; $ref = new ReflectionMethod($a, '__invoke'); var_dump(is_object($a), is_callable($a)); $a(); $ref->setAccessible(true); $b = 3; $ref->invoke($a, &$b); exit; function a($a) { } $b = 3; a($b);

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)
5.4.190.0030.03812.36
5.4.180.0030.03712.36
5.4.170.0170.06312.38
5.4.160.0090.04012.37
5.4.150.0100.04012.37
5.4.140.0090.04112.05
5.4.130.0120.03612.04
5.4.120.0110.03811.99
5.4.110.0120.03611.99
5.4.100.0100.04311.99
5.4.90.0090.04211.99
5.4.80.0090.04211.99
5.4.70.0090.03811.99
5.4.60.0080.04011.99
5.4.50.0260.05511.99
5.4.40.0130.03811.98
5.4.30.0090.04111.97
5.4.20.0120.03611.97
5.4.10.0090.03911.97
5.4.00.0090.04011.46
5.3.290.0050.04112.80
5.3.280.0040.04112.71
5.3.270.0150.04712.72
5.3.260.0130.04712.72
5.3.250.0210.05212.72
5.3.240.0140.03612.72
5.3.230.0080.04512.71
5.3.220.0120.03912.68
5.3.210.0140.05412.68
5.3.200.0150.03612.68
5.3.190.0130.04012.68
5.3.180.0150.03912.67
5.3.170.0130.05412.67
5.3.160.0100.04212.67
5.3.150.0100.04312.67
5.3.140.0100.04612.66
5.3.130.0130.04112.66
5.3.120.0160.03812.66
5.3.110.0130.04012.66
5.3.100.0200.04912.12
5.3.90.0100.04412.09
5.3.80.0150.05012.08
5.3.70.0100.04212.08
5.3.60.0110.04012.07
5.3.50.0120.04112.01
5.3.40.0100.04112.01
5.3.30.0120.03811.97
5.3.20.0120.04411.74
5.3.10.0100.03911.71
5.3.00.0130.03811.70
5.2.170.0130.0439.20
5.2.160.0070.0349.20
5.2.150.0100.0319.19
5.2.140.0070.0359.19
5.2.130.0070.0349.16
5.2.120.0090.0329.15
5.2.110.0070.0349.15
5.2.100.0110.0289.16
5.2.90.0070.0349.16
5.2.80.0080.0349.15
5.2.70.0070.0359.15
5.2.60.0070.0329.11
5.2.50.0080.0329.08
5.2.40.0100.0349.05
5.2.30.0130.0499.03
5.2.20.0090.0359.03
5.2.10.0100.0368.93
5.2.00.0120.0348.79
5.1.60.0080.0318.07
5.1.50.0090.0278.07
5.1.40.0100.0318.06
5.1.30.0080.0308.41
5.1.20.0080.0298.43
5.1.10.0100.0308.16
5.1.00.0060.0298.15
5.0.50.0070.0256.62
5.0.40.0090.0236.48
5.0.30.0180.0626.30
5.0.20.0080.0246.27
5.0.10.0080.0256.25
5.0.00.0070.0356.23
4.4.90.0070.0164.78
4.4.80.0050.0214.76
4.4.70.0050.0214.75
4.4.60.0080.0204.75
4.4.50.0040.0204.77
4.4.40.0050.0314.71
4.4.30.0050.0194.76
4.4.20.0050.0194.84
4.4.10.0050.0194.85
4.4.00.0060.0254.76
4.3.110.0040.0184.67
4.3.100.0050.0164.67
4.3.90.0050.0154.63
4.3.80.0050.0274.59
4.3.70.0050.0184.63
4.3.60.0050.0164.63
4.3.50.0050.0164.63
4.3.40.0040.0264.53
4.3.30.0020.0183.30
4.3.20.0020.0213.28
4.3.10.0050.0173.24
4.3.00.0000.01715.48

preferences:
143.75 ms | 1386 KiB | 7 Q