3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo {} $foo = new Foo; $rounds = 1000000; $start = microtime(true); $name = get_class($foo); for($i=0; $i<$rounds; $i++) { $name; } echo (microtime(true) - $start); echo "\n"; $start = microtime(true); $name = (new ReflectionClass($foo))->getName(); for($i=0; $i<$rounds; $i++) { $name; } 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.0070.02619.10
7.1.70.0090.01917.13
7.1.60.0070.04919.40
7.1.50.0270.04034.86
7.1.00.0070.09722.40
7.0.200.0040.02216.82
7.0.140.0030.13022.09
7.0.60.0000.11321.59
7.0.50.0100.09022.15
7.0.40.0030.10320.01
7.0.30.0000.11020.13
7.0.20.0100.05020.02
7.0.10.0130.09320.14
7.0.00.0000.11020.03
5.6.280.0000.14020.82
5.6.210.0030.13720.63
5.6.200.0100.13321.13
5.6.190.0070.13721.00
5.6.180.0030.13721.14
5.6.170.0130.13721.01
5.6.160.0000.13321.03
5.6.150.0070.13320.92
5.6.140.0070.13021.10
5.6.130.0100.13721.12
5.6.120.0070.14020.97
5.6.110.0030.11021.11
5.6.100.0030.15020.98
5.6.90.0100.13321.10
5.6.80.0100.11320.50
5.6.70.0070.14320.37
5.6.60.0100.12720.36
5.6.50.0030.15020.50
5.6.40.0100.12320.38
5.6.30.0030.14320.48
5.6.20.0030.13020.33
5.6.10.0070.12320.47
5.6.00.0030.13020.33
5.5.350.0030.14320.39
5.5.340.0070.13720.74
5.5.330.0100.08720.90
5.5.320.0130.12020.98
5.5.310.0100.13320.80
5.5.300.0100.13020.95
5.5.290.0030.13720.85
5.5.280.0000.13020.98
5.5.270.0070.12720.76
5.5.260.0070.13720.95
5.5.250.0100.13720.54
5.5.240.0070.13320.15
5.5.230.0030.13720.35
5.5.220.0070.09320.14
5.5.210.0070.14020.25
5.5.200.0030.13320.12
5.5.190.0100.12720.03
5.5.180.0030.14320.07
5.5.160.0070.14020.23
5.5.150.0000.11320.08
5.5.140.0070.14020.21
5.5.130.0100.14020.31
5.5.120.0000.08720.14
5.5.110.0100.11320.21
5.5.100.0070.12320.11
5.5.90.0030.08020.01
5.5.80.0100.07320.01
5.5.70.0030.08020.00
5.5.60.0000.06720.12
5.5.50.0100.06020.03
5.5.40.0000.07320.05
5.5.30.0000.07020.02
5.5.20.0070.06320.00
5.5.10.0000.08020.07
5.5.00.0000.07019.98
5.4.450.0070.12019.50
5.4.440.0070.13719.40
5.4.430.0030.14319.41
5.4.420.0030.12319.27
5.4.410.0100.12719.10
5.4.400.0070.13718.94
5.4.390.0100.13019.06
5.4.380.0100.09019.07
5.4.370.0070.13019.07
5.4.360.0070.14019.07
5.4.350.0070.13019.05
5.4.340.0070.13319.13
5.4.320.0000.14719.20
5.4.310.0100.13318.91
5.4.300.0000.12319.04
5.4.290.0030.10318.91
5.4.280.0130.12019.04
5.4.270.0070.13719.06
5.4.260.0000.11019.04
5.4.250.0000.08318.90
5.4.240.0000.10019.02
5.4.230.0070.07319.16
5.4.220.0000.09318.91
5.4.210.0070.08019.21
5.4.200.0000.06719.06
5.4.190.0000.08319.06
5.4.180.0030.06319.16
5.4.170.0070.06318.89
5.4.160.0000.08719.20
5.4.150.0000.06719.17
5.4.140.0000.06316.43
5.4.130.0000.06716.42
5.4.120.0030.06316.25
5.4.110.0030.06716.31
5.4.100.0170.06316.46
5.4.90.0000.06716.51
5.4.80.0030.13316.36
5.4.70.0070.12716.37
5.4.60.0100.13316.35
5.4.50.0030.11716.45
5.4.40.0000.13316.50
5.4.30.0070.13016.34
5.4.20.0000.14016.49
5.4.10.0070.13716.48
5.4.00.0030.12715.87
5.3.290.0030.07314.68
5.3.280.0000.03314.64
5.3.270.0000.04314.57
5.3.260.0000.03314.69
5.3.250.0030.02714.46
5.3.240.0070.03714.65
5.3.230.0000.03014.63
5.3.220.0000.03314.52
5.3.210.0000.03314.55
5.3.200.0000.04014.53
5.3.190.0000.05014.57
5.3.180.0000.06714.63
5.3.170.0000.06314.56
5.3.160.0030.07314.52
5.3.150.0030.05014.53
5.3.140.0000.06714.46
5.3.130.0030.07314.63
5.3.120.0000.07314.37
5.3.110.0070.07314.54
5.3.100.0070.07014.10
5.3.90.0000.07314.11
5.3.80.0000.07714.08
5.3.70.0030.06714.13
5.3.60.0030.07014.05
5.3.50.0070.06713.91
5.3.40.0000.07713.91
5.3.30.0070.06313.87
5.3.20.0030.05313.73
5.3.10.0070.07013.55
5.3.00.0030.06313.70
5.2.170.0000.06311.09
5.2.160.0030.05311.24
5.2.150.0030.06311.25
5.2.140.0000.05711.18
5.2.130.0030.06011.09
5.2.120.0030.06011.12
5.2.110.0070.05711.15
5.2.100.0030.06311.15
5.2.90.0030.06011.17
5.2.80.0000.06711.15
5.2.70.0000.05311.20
5.2.60.0000.06311.09
5.2.50.0070.05311.09
5.2.40.0070.05311.09
5.2.30.0070.06011.09
5.2.20.0030.05311.09
5.2.10.0070.06011.09
5.2.00.0070.04711.09
5.1.60.0070.04711.09
5.1.50.0070.05011.09
5.1.40.0030.05011.09
5.1.30.0000.05711.09
5.1.20.0000.05311.09
5.1.10.0070.05011.09
5.1.00.0030.03711.09
5.0.50.0030.04711.09
5.0.40.0000.02011.09
5.0.30.0000.03011.09
5.0.20.0030.01711.09
5.0.10.0000.02311.09
5.0.00.0000.03311.09
4.4.90.0000.03311.09
4.4.80.0030.03711.09
4.4.70.0030.03711.09
4.4.60.0130.02711.09
4.4.50.0000.03711.09
4.4.40.0000.05711.09
4.4.30.0030.02011.09
4.4.20.0030.03311.09
4.4.10.0000.03711.09
4.4.00.0000.05311.09
4.3.110.0030.01311.09
4.3.100.0070.01311.09
4.3.90.0000.02311.09
4.3.80.0000.02311.09
4.3.70.0000.01711.09
4.3.60.0000.02011.09
4.3.50.0000.03711.09
4.3.40.0030.02711.09
4.3.30.0000.02011.09
4.3.20.0000.01711.09
4.3.10.0000.04011.09
4.3.00.0000.03011.09

preferences:
41.78 ms | 401 KiB | 5 Q