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++) { (new ReflectionClass($foo))->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.4.00.0070.32015.04
7.3.120.0070.44515.00
7.3.110.0120.46314.93
7.3.100.0000.27815.01
7.3.90.0070.40614.85
7.3.80.0030.26914.65
7.3.70.0030.31314.91
7.3.60.0030.36414.88
7.3.50.0030.38514.80
7.3.40.0000.35514.62
7.3.30.0000.36714.93
7.3.20.0100.27016.79
7.3.10.0030.31516.88
7.3.00.0030.26916.56
7.2.250.0100.51615.29
7.2.240.0070.56314.95
7.2.230.0030.49115.27
7.2.220.0070.45215.09
7.2.210.0000.44214.93
7.2.200.0030.47915.01
7.2.190.0070.38815.11
7.2.180.0070.38515.01
7.2.170.0100.51314.90
7.2.00.0070.27019.46
7.1.330.0100.74415.94
7.1.320.0030.61215.71
7.1.310.0070.58815.82
7.1.300.0070.64016.00
7.1.290.0030.65115.93
7.1.280.0070.59616.03
7.1.270.0070.62215.79
7.1.260.0100.60115.80
7.1.70.0000.36417.21
7.1.60.0070.40619.82
7.1.50.0170.39016.82
7.1.00.0100.35022.36
7.0.200.0000.31216.53
7.0.140.0000.50721.92
7.0.70.4270.38719.89
7.0.60.0100.43719.94
7.0.50.0030.44017.86
7.0.40.0000.37020.41
7.0.30.0070.40020.07
7.0.20.0230.38720.23
7.0.10.0200.44020.10
7.0.00.0000.46320.05
5.6.280.0070.76720.93
5.6.210.0100.98020.54
5.6.200.0030.81718.20
5.6.190.0070.76320.60
5.6.180.0270.70020.46
5.6.170.0270.85720.45
5.6.160.0070.86020.54
5.6.150.0000.86318.18
5.6.140.0030.85718.28
5.6.130.0100.86318.27
5.6.120.0130.85321.12
5.6.110.0170.92721.12
5.6.100.0070.84720.98
5.6.90.0000.78721.11
5.6.80.0800.84720.51
5.6.70.0230.80020.43
5.5.350.0100.88720.39
5.5.340.0070.86317.98
5.5.330.0130.77720.36
5.5.320.0030.76720.21
5.5.310.0331.03320.32
5.5.300.0130.87717.95
5.5.290.1600.85018.06
5.5.280.0130.86320.80
5.5.270.0030.83020.88
5.5.260.0070.88720.98
5.5.250.0200.92020.69
5.5.240.0100.81720.28
5.4.450.0230.73719.24
5.4.440.0300.71719.27
5.4.430.0270.78019.38
5.4.420.0230.67719.55
5.4.410.0270.73019.39
5.4.400.0370.73019.09
5.4.390.0230.67018.86
5.4.380.0230.65719.20
5.4.370.0230.75319.19
5.4.360.0300.72719.22
5.4.350.0270.74718.87
5.4.340.0230.70018.82
5.4.320.0270.72318.88
5.4.310.0370.85019.16
5.4.300.0270.72319.21
5.4.290.0370.74018.94
5.4.280.0230.74019.24
5.4.270.0270.71019.13
5.4.260.0130.66719.16
5.4.250.0200.66718.98
5.4.240.0130.67019.08
5.4.230.1330.68019.08
5.4.220.0230.77318.84
5.4.210.1230.70319.21
5.4.200.0230.74718.86
5.4.190.0230.70319.30
5.4.180.0300.73319.23
5.4.170.1130.72318.85
5.4.160.0330.73019.11
5.4.150.0270.70318.93
5.4.140.0300.71716.29
5.4.130.0300.75316.31
5.4.120.1300.67716.45
5.4.110.0170.77716.51
5.4.100.0200.76316.51
5.4.90.0300.74716.41
5.4.80.0270.71716.50
5.4.70.0300.78016.39
5.4.60.0230.73016.17
5.4.50.0230.72016.38
5.4.40.0230.69016.25
5.4.30.0230.69016.34
5.4.20.0300.73016.37
5.4.10.0230.71016.55
5.4.00.0170.67015.73
5.3.290.0230.05714.66
5.3.280.0230.06314.50
5.3.270.0300.06314.83
5.3.260.0230.07314.59
5.3.250.0230.07014.51
5.3.240.0270.06714.72
5.3.230.0330.06714.68
5.3.220.0200.04314.66
5.3.210.0270.06714.61
5.3.200.0200.04314.57
5.3.190.0230.03314.49
5.3.180.0300.06714.46
5.3.170.0270.07014.58
5.3.160.0270.06714.47
5.3.150.0230.03714.56
5.3.140.0270.05314.46
5.3.130.0230.04714.52
5.3.120.0270.05714.54
5.3.110.0270.03314.62
5.3.100.0270.07014.04
5.3.90.0330.05714.07
5.3.80.0300.04714.03
5.3.70.0300.06013.93
5.3.60.0400.05313.93
5.3.50.0230.07314.00
5.3.40.0400.05714.03
5.3.30.0300.06313.95
5.3.20.0270.07013.71
5.3.10.0230.04013.68
5.3.00.0300.06713.68
5.2.170.0200.03713.00
5.2.160.0270.04313.00
5.2.150.0230.06013.00
5.2.140.0230.04013.00
5.2.130.0200.05713.00
5.2.120.0200.03713.00
5.2.110.0230.02713.00
5.2.100.0300.05713.00
5.2.90.0370.04313.00
5.2.80.0200.04013.00
5.2.70.0230.04313.00
5.2.60.0200.05313.00
5.2.50.0200.04013.00
5.2.40.0170.03013.00
5.2.30.0230.05313.00
5.2.20.0200.05313.00
5.2.10.0230.04013.00
5.2.00.0230.05713.00
5.1.60.0200.03713.00
5.1.50.0200.03313.00
5.1.40.0230.04713.00
5.1.30.0170.04313.00
5.1.20.0130.04313.00
5.1.10.0300.04313.00
5.1.00.0170.04313.00
5.0.50.0170.03313.00
5.0.40.0170.02313.00
5.0.30.0170.04313.00
5.0.20.0130.04013.00
5.0.10.0070.03313.00
5.0.00.0130.04313.00
4.4.90.0100.03713.00
4.4.80.0130.03713.00
4.4.70.0100.02313.00
4.4.60.0070.02013.00
4.4.50.0070.02013.00
4.4.40.0100.05313.00
4.4.30.0230.01013.00
4.4.20.0070.03713.00
4.4.10.0100.02713.00
4.4.00.0170.04713.00
4.3.110.0070.03713.00
4.3.100.0100.03713.00
4.3.90.0100.03013.00
4.3.80.0170.04313.00
4.3.70.0100.03713.00
4.3.60.0130.03013.00
4.3.50.0130.02013.00
4.3.40.0230.03313.00
4.3.30.0030.04013.00
4.3.20.0070.02313.00
4.3.10.0030.04013.00
4.3.00.0030.03713.00

preferences:
42.79 ms | 400 KiB | 5 Q