3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function bar() { static $r = new ReflectionClass(get_class()); return $r; } } $r1 = (new Foo)->bar(); $r2 = (new Foo)->bar(); var_dump((new Foo)->bar()); var_dump((new Foo)->bar()); var_dump($r1, $r2);

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.320.0230.03719.14
5.4.310.0170.04019.09
5.4.300.0200.03719.19
5.4.290.0130.04318.87
5.4.280.0230.03318.94
5.4.270.0170.04018.84
5.4.260.0130.04318.98
5.4.250.0230.04019.05
5.4.240.0130.04319.22
5.4.230.0200.03719.05
5.4.220.0200.04318.98
5.4.210.0370.03718.85
5.4.200.0270.03718.98
5.4.190.0330.07018.98
5.4.180.0230.05019.17
5.4.170.0200.07319.09
5.4.160.0270.05719.07
5.4.150.0200.04018.85
5.4.140.0200.05716.34
5.4.130.0330.04016.48
5.4.120.0400.06016.47
5.4.110.0330.07016.59
5.4.100.0370.06316.26
5.4.90.0330.05016.36
5.4.80.0270.04716.44
5.4.70.0330.06716.51
5.4.60.0270.06716.48
5.4.50.0370.03316.53
5.4.40.0300.07316.54
5.4.30.0300.06716.55
5.4.20.0370.06016.53
5.4.10.0330.06016.52
5.4.00.0300.07015.80
5.3.290.0230.04314.59
5.3.280.0170.04014.82
5.3.270.0200.03714.52
5.3.260.0330.06014.59
5.3.250.0230.07714.69
5.3.240.0330.07014.50
5.3.230.0270.07314.57
5.3.220.0400.06014.72
5.3.210.0270.04014.57
5.3.200.0300.06314.47
5.3.190.0270.05014.57
5.3.180.0230.03714.46
5.3.170.0330.04314.54
5.3.160.0330.06014.64
5.3.150.0500.05014.46
5.3.140.0470.03714.71
5.3.130.0300.05714.77
5.3.120.0270.07014.62
5.3.110.0270.06014.52
5.3.100.0400.06013.95
5.3.90.0270.07713.95
5.3.80.0370.06314.14
5.3.70.0300.06713.94
5.3.60.0230.05014.02
5.3.50.0230.06014.02
5.3.40.0230.07014.16
5.3.30.0300.06713.81
5.3.20.0400.05013.61
5.3.10.0370.06313.57
5.3.00.0270.05713.55
5.2.170.0270.04311.15
5.2.160.0270.05011.14
5.2.150.0270.06011.25
5.2.140.0230.05011.14
5.2.130.0370.02711.10
5.2.120.0270.05011.00
5.2.110.0300.05311.25
5.2.100.0200.03311.19
5.2.90.0330.02711.15
5.2.80.0230.05711.21
5.2.70.0230.05011.10
5.2.60.0270.04311.01
5.2.50.0270.04310.92
5.2.40.0200.03311.17
5.2.30.0200.03710.92
5.2.20.0170.03710.96
5.2.10.0330.02311.09
5.2.00.0270.05310.67
5.1.60.0170.0509.88
5.1.50.0200.0509.90
5.1.40.0170.04310.10
5.1.30.0130.03710.42
5.1.20.0200.04010.27
5.1.10.0200.03710.19
5.1.00.0200.04710.07
5.0.50.0170.0209.27
5.0.40.0130.0279.27
5.0.30.0070.0509.27
5.0.20.0170.0409.27
5.0.10.0200.0309.27
5.0.00.0100.0479.27
4.4.90.0100.0239.27
4.4.80.0070.0179.27
4.4.70.0170.0279.27
4.4.60.0130.0339.27
4.4.50.0130.0279.27
4.4.40.0170.0439.27
4.4.30.0100.0279.27
4.4.20.0070.0279.27
4.4.10.0100.0239.27
4.4.00.0130.0479.27
4.3.110.0100.0379.27
4.3.100.0100.0339.27
4.3.90.0100.0239.27
4.3.80.0100.0539.27
4.3.70.0070.0239.27
4.3.60.0130.0309.27
4.3.50.0130.0279.27
4.3.40.0130.0509.27
4.3.30.0070.0239.27
4.3.20.0070.0339.27
4.3.10.0030.0309.27
4.3.00.0030.0309.27

preferences:
142.31 ms | 1398 KiB | 7 Q