3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo {} $foo = new Foo; $rounds = 1000000; $start = microtime(true); for($i=0; $i<$rounds; $i++) { get_class($foo); } echo (microtime(true) - $start); echo "\n"; $reflectionClass = new ReflectionClass($foo); $start = microtime(true); for($i=0; $i<$rounds; $i++) { $reflectionClass->getName(); } echo (microtime(true) - $start); echo "\n"; $start = microtime(true); for($i=0; $i<$rounds; $i++) { $reflectionClass = new ReflectionClass($foo); $reflectionClass->getName(); } echo (microtime(true) - $start);

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)
7.2.00.0030.26519.25
7.1.70.0470.36217.30
7.1.60.0170.39819.17
7.1.50.0070.44216.67
7.1.00.0000.29722.28
7.0.200.0130.35714.86
7.0.140.0030.44021.97
7.0.70.0000.35021.76
7.0.60.0000.39321.77
7.0.50.0070.42322.15
7.0.40.0100.51320.12
7.0.30.0070.35020.10
7.0.20.0030.49320.07
7.0.10.0100.40320.12
7.0.00.0030.35020.11
5.6.280.0000.85020.82
5.6.220.0030.75720.50
5.6.210.0000.70020.75
5.6.200.0000.88021.05
5.6.190.0030.85021.18
5.6.180.0130.80721.02
5.6.170.0100.86321.02
5.6.160.0100.93721.05
5.6.150.0070.88020.95
5.6.140.0000.87321.02
5.6.130.0030.83721.12
5.6.120.0030.89721.11
5.6.110.0030.71720.92
5.6.100.0130.85321.13
5.6.90.0000.91320.89
5.6.80.0030.86320.30
5.6.70.0070.83720.50
5.6.60.0100.91020.42
5.6.50.0030.86320.34
5.6.40.0000.83720.36
5.6.30.0100.84320.37
5.6.20.0070.88020.23
5.6.10.0070.69320.30
5.6.00.0000.66720.36
5.5.360.0030.71720.49
5.5.350.0070.71720.40
5.5.340.0100.85020.64
5.5.330.0030.93020.82
5.5.320.0070.87320.88
5.5.310.0030.91320.91
5.5.300.0000.89020.76
5.5.290.0030.95720.76
5.5.280.0070.88720.88
5.5.270.0070.67020.70
5.5.260.0100.89320.82
5.5.250.0070.93320.56
5.5.240.0000.84720.19
5.5.230.0070.67720.29
5.5.220.0400.72720.21
5.5.210.0000.80020.18
5.5.200.0030.87720.25
5.5.190.0070.86020.24
5.5.180.0030.87020.15
5.5.160.0030.75320.22
5.5.150.0030.69720.22
5.5.140.0030.73720.23
5.5.130.0130.84720.18
5.5.120.0030.87720.11
5.5.110.0000.92720.22
5.5.100.0030.86720.08
5.5.90.0070.91019.95
5.5.80.0000.88720.13
5.5.70.0030.70720.13
5.5.60.0030.71319.96
5.5.50.0070.90020.12
5.5.40.0000.91019.93
5.5.30.0000.74020.04
5.5.20.0000.73719.98
5.5.10.0000.89320.01
5.5.00.0030.89720.10
5.4.450.0100.83019.37
5.4.440.0030.71319.53
5.4.430.0070.88019.53
5.4.420.0100.86019.37
5.4.410.0070.86719.10
5.4.400.0170.85319.19
5.4.390.0000.87718.92
5.4.380.0100.86319.05
5.4.370.0000.73019.05
5.4.360.0000.71719.16
5.4.350.0070.77719.12
5.4.340.0030.86018.90
5.4.320.0030.69719.14
5.4.310.0000.71019.09
5.4.300.0070.86318.95
5.4.290.0070.91019.07
5.4.280.0070.87719.13
5.4.270.0070.82319.22
5.4.260.0000.86719.13
5.4.250.0030.86719.14
5.4.240.0100.87718.84
5.4.230.0030.87719.16
5.4.220.0030.67718.87
5.4.210.0000.67318.89
5.4.200.0000.89719.15
5.4.190.0000.85019.11
5.4.180.0030.86019.08
5.4.170.0070.84319.20
5.4.160.0000.76318.82
5.4.150.0000.88019.21
5.4.140.0000.87016.41
5.4.130.0030.88316.24
5.4.120.0070.82316.42
5.4.110.0030.77016.44
5.4.100.0070.84716.49
5.4.90.0000.85016.39
5.4.80.0000.87316.46
5.4.70.0030.86316.42
5.4.60.0000.88716.30
5.4.50.0000.82316.31
5.4.40.0030.79016.36
5.4.30.0000.88016.33
5.4.20.0030.72316.48
5.4.10.0000.79016.32
5.4.00.0000.70015.86
5.3.290.0000.71714.73
5.3.280.0030.92714.58
5.3.270.0000.98314.73
5.3.260.0000.94014.75
5.3.250.0000.90314.66
5.3.240.0000.94314.71
5.3.230.0070.95314.66
5.3.220.0030.87314.59
5.3.210.0330.71714.58
5.3.200.0030.98314.64
5.3.190.0000.88714.52
5.3.180.0000.75014.56
5.3.170.0070.92714.68
5.3.160.0070.80714.70
5.3.150.0000.95314.59
5.3.140.0770.96014.65
5.3.130.0030.82014.57
5.3.120.0000.74014.47
5.3.110.0000.73014.48
5.3.100.0000.79713.98
5.3.90.0000.76014.14
5.3.80.0030.73014.04
5.3.70.0100.87714.02
5.3.60.0000.92014.07
5.3.50.0030.70713.93
5.3.40.0100.93713.94
5.3.30.0070.91713.80
5.3.20.0030.87313.80
5.3.10.0100.93713.67
5.3.00.0000.86313.62
5.2.170.0030.81012.35
5.2.160.0030.87312.35
5.2.150.0030.89712.35
5.2.140.0070.91712.35
5.2.130.0070.85012.35
5.2.120.0030.71312.35
5.2.110.0000.90012.35
5.2.100.0030.91312.35
5.2.90.0000.75712.35
5.2.80.0070.89712.35
5.2.70.0030.79012.35
5.2.60.0030.89712.35
5.2.50.0000.86312.35
5.2.40.0000.71312.35
5.2.30.0000.90712.35
5.2.20.0030.89712.35
5.2.10.0000.86312.35
5.2.00.0030.89012.35
5.1.60.0000.69712.35
5.1.50.0030.69012.35
5.1.40.0000.67712.35
5.1.30.0000.78312.35
5.1.20.0000.86312.35
5.1.10.0000.90012.35
5.1.00.0000.87012.35
5.0.50.0001.23012.35
5.0.40.0101.29012.35
5.0.30.0001.05712.35
5.0.20.0001.15012.35
5.0.10.0001.19712.35
5.0.00.0431.20312.35
4.4.90.0000.30312.35
4.4.80.0030.27712.35
4.4.70.0000.30312.35
4.4.60.0000.31012.35
4.4.50.0000.31312.35
4.4.40.0030.29312.35
4.4.30.0000.30312.35
4.4.20.0070.26712.35
4.4.10.0070.27712.35
4.4.00.0030.29012.35
4.3.110.0030.27012.35
4.3.100.0000.29712.35
4.3.90.0000.29712.35
4.3.80.0000.31012.35
4.3.70.0030.24712.35
4.3.60.0000.23312.35
4.3.50.0000.29312.35
4.3.40.0030.31312.35
4.3.30.0070.29312.35
4.3.20.0000.25712.35
4.3.10.0000.24712.35
4.3.00.0070.30012.35

preferences:
36.33 ms | 400 KiB | 5 Q