3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public static function b() { echo static::class; } } class B extends A { } $c = ['B', 'b']; $d = \Closure::fromCallable($c); $r = new \ReflectionFunction($d); var_dump($r->getClosureScopeClass()); $d();

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.10.0070.01120.46
8.5.00.0130.00820.05
8.4.160.0090.01223.87
8.4.150.0010.00114.05
8.4.140.0160.01117.61
8.4.130.0050.00318.77
8.4.120.0090.00320.59
8.4.110.0100.01018.59
8.4.100.0110.01017.81
8.4.90.0150.00520.54
8.4.80.0040.00418.78
8.4.70.0050.00317.64
8.4.60.0070.00918.40
8.4.50.0120.00822.68
8.4.40.0040.00419.64
8.4.30.0060.00618.54
8.4.20.0100.00718.85
8.4.10.0030.00621.87
8.3.280.0110.01018.35
8.3.270.0090.00916.50
8.3.260.0080.01016.64
8.3.250.0070.00218.69
8.3.240.0130.00516.54
8.3.230.0090.01018.34
8.3.220.0040.00318.94
8.3.210.0130.00716.57
8.3.200.0050.00416.46
8.3.190.0090.00816.98
8.3.180.0130.00518.56
8.3.170.0140.00716.15
8.3.160.0090.00916.92
8.3.150.0130.00616.86
8.3.140.0000.00820.91
8.3.130.0050.00318.17
8.3.120.0050.00320.56
8.3.110.0030.00620.94
8.3.100.0080.01118.54
8.3.90.0150.00426.77
8.3.80.0050.00516.50
8.3.70.0150.00016.63
8.3.60.0180.01024.02
8.3.50.0110.00922.09
8.3.40.0220.00723.32
8.3.30.0250.00522.38
8.3.20.0220.00625.05
8.3.10.0210.00425.29
8.3.00.0210.00726.04
8.2.290.0120.00716.73
8.2.280.0130.00518.23
8.2.270.0150.00418.42
8.2.260.0060.01116.52
8.2.250.0000.00816.62
8.2.240.0100.01017.26
8.2.230.0030.00722.58
8.2.220.0070.00324.06
8.2.210.0030.01626.77
8.2.200.0090.00016.75
8.2.190.0150.00616.75
8.2.180.0170.01025.92
8.2.170.0250.00922.36
8.2.160.0230.00824.44
8.2.150.0200.01025.79
8.2.140.0180.00625.29
8.2.130.0290.00326.04
8.2.120.0200.00422.58
8.2.110.0190.01023.52
8.2.100.0180.01021.85
8.2.90.0160.00821.77
8.2.80.0170.00622.38
8.2.70.0170.00721.77
8.2.60.0160.00821.77
8.2.50.0170.00821.76
8.2.40.0260.00022.07
8.2.30.0230.00422.00
8.2.20.0170.01023.19
8.2.10.0140.00922.02
8.2.00.0120.01122.59
8.1.330.0140.00416.05
8.1.320.0120.00716.21
8.1.310.0090.00018.23
8.1.300.0150.00018.00
8.1.290.0070.01030.84
8.1.280.0190.00725.92
8.1.270.0160.01024.96
8.1.260.0220.00326.14
8.1.250.0210.00527.00
8.1.240.0190.00424.86
8.1.230.0180.00724.34
8.1.220.0120.00921.83
8.1.210.0140.01022.35
8.1.200.0140.01121.57
8.1.190.0140.00521.57
8.1.180.0150.00422.46
8.1.170.0130.00822.21
8.1.160.0120.00822.38
8.1.150.0170.00522.25
8.1.140.0140.00521.65
8.1.130.0200.00922.32
8.1.120.0200.01121.67
8.1.110.0080.00619.05
8.1.100.0150.00420.22
8.1.90.0130.00620.19
8.1.80.0110.00519.53
8.1.70.0160.00619.09
8.1.60.0150.00619.12
8.1.50.0140.00719.09
8.1.40.0150.00619.12
8.1.30.0170.00519.19
8.1.20.0170.00619.17
8.1.10.0170.00619.15
8.1.00.0140.00619.14
8.0.300.0160.00422.35
8.0.290.0160.00521.27
8.0.280.0120.00722.19
8.0.270.0160.00821.93
8.0.260.0200.00522.18
8.0.250.0160.00821.44
8.0.240.0170.01121.42
8.0.230.0170.00519.92
8.0.220.0190.00319.82
8.0.210.0160.00719.03
8.0.200.0150.00618.64
8.0.190.0200.00518.65
8.0.180.0150.00618.65
8.0.170.0110.00818.66
8.0.160.0130.00718.61
8.0.150.0140.00618.62
8.0.140.0120.00618.59
8.0.130.0160.00318.59
8.0.120.0160.00418.60
8.0.110.0130.00618.54
8.0.100.0120.00718.53
8.0.90.0120.00618.65
8.0.80.0130.00518.58
8.0.70.0090.00718.58
8.0.60.0090.00718.59
8.0.50.0150.00418.61
8.0.30.0120.00518.58
8.0.20.0130.00518.63
8.0.10.0100.00718.68
7.4.330.0140.00420.73
7.4.320.0180.00621.24
7.4.300.0130.00418.33
7.4.290.0160.00518.31
7.4.280.0130.00618.27
7.4.270.0100.00718.29
7.4.260.0110.00618.30
7.4.250.0150.00418.32
7.4.240.0130.00518.29
7.4.230.0150.00518.28
7.4.220.0120.00618.16
7.4.210.0120.00518.27
7.4.200.0110.00518.32
7.4.190.0130.00418.30
7.4.180.0120.00618.35
7.4.160.0140.00218.25
7.4.150.0120.00518.19
7.4.140.0150.00218.20
7.4.130.0120.00418.16
7.4.120.0100.00718.29
7.4.110.0120.00618.14
7.4.100.0100.00518.27
7.4.90.0100.00618.19
7.4.80.0100.00718.18
7.4.70.0100.00618.22
7.4.60.0120.00618.17
7.4.50.0100.00718.17
7.4.40.0100.00818.18
7.4.30.0130.00518.16
7.4.20.0120.00618.16
7.4.10.0110.00618.12
7.4.00.0080.00718.26

preferences:
33.88 ms | 403 KiB | 5 Q