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"; $name = (new ReflectionClass($foo))->getName(); $start = microtime(true); 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.0100.02619.48
7.1.70.0100.08517.19
7.1.60.0130.07419.30
7.1.50.0070.08017.06
7.1.00.0030.08722.57
7.0.200.0030.05916.61
7.0.140.0130.16321.95
7.0.120.0070.13322.05
7.0.60.0070.08019.94
7.0.50.0070.14017.89
7.0.40.0070.14320.11
7.0.30.0330.13020.25
7.0.20.0300.13020.07
7.0.10.0070.09320.07
7.0.00.0070.12320.25
5.6.280.0100.25020.81
5.6.210.0100.19720.73
5.6.200.0100.21718.14
5.6.190.0100.23020.41
5.6.180.0330.19720.34
5.6.170.0170.17020.71
5.6.160.0030.17320.50
5.6.150.0070.19718.17
5.6.140.0100.16718.24
5.6.130.0030.16718.15
5.6.120.0070.22721.02
5.6.110.0130.22320.98
5.6.100.0130.22721.11
5.6.90.0030.16720.97
5.6.80.0200.22020.35
5.5.350.0130.22020.35
5.5.340.0070.16017.99
5.5.330.0130.16720.38
5.5.320.0000.21720.35
5.5.310.0130.17320.33
5.5.300.0030.20317.95
5.5.290.0070.16318.01
5.5.280.0030.22020.88
5.5.270.0070.22320.86
5.5.260.0200.15720.95
5.5.250.0100.22020.46
5.5.240.0130.13720.15
5.4.450.0070.18319.31
5.4.440.0070.16719.17
5.4.430.0200.19719.29
5.4.420.0070.18019.20
5.4.410.0000.18719.09
5.4.400.0100.21719.24
5.4.390.0070.21719.15
5.4.380.0130.20719.15
5.4.370.0030.18718.87
5.4.360.0070.20018.86
5.4.350.0400.16018.85
5.4.340.0030.21718.88
5.4.320.0130.22018.92
5.4.310.0070.18318.92
5.4.300.0070.22019.12
5.4.290.0030.17019.23
5.4.280.0030.22319.20
5.4.270.0030.17019.07
5.4.260.0030.17719.24
5.4.250.0070.20319.15
5.4.240.0100.18019.00
5.4.230.0030.18019.20
5.4.220.0030.18719.24
5.4.210.0000.17319.14
5.4.200.0130.22719.00
5.4.190.0100.20719.13
5.4.180.0070.17319.19
5.4.170.0130.22019.13
5.4.160.0100.21719.22
5.4.150.0030.17318.95
5.4.140.0030.20316.34
5.4.130.0030.22716.39
5.4.120.0100.17716.45
5.4.110.0130.17316.50
5.4.100.0030.17716.39
5.4.90.0030.20716.30
5.4.80.0200.21316.53
5.4.70.0030.18316.26
5.4.60.0070.18016.25
5.4.50.0070.22016.36
5.4.40.0200.20716.27
5.4.30.0030.16016.42
5.4.20.0070.15716.38
5.4.10.0000.16316.23
5.4.00.0030.18315.91
5.3.290.0070.07314.68
5.3.280.0130.06714.48
5.3.270.0170.07014.53
5.3.260.0170.07014.52
5.3.250.0070.07014.75
5.3.240.0130.03714.62
5.3.230.0100.07014.75
5.3.220.0130.07014.61
5.3.210.0070.06314.73
5.3.200.0070.06714.59
5.3.190.0000.04314.57
5.3.180.0030.06314.72
5.3.170.0070.07014.60
5.3.160.0070.03714.71
5.3.150.0000.08014.59
5.3.140.0100.07714.71
5.3.130.0030.03714.55
5.3.120.0000.04014.54
5.3.110.0030.03714.46
5.3.100.0000.04713.93
5.3.90.0000.03714.02
5.3.80.0030.03314.01
5.3.70.0000.04014.07
5.3.60.0000.03713.91
5.3.50.0000.04014.02
5.3.40.0030.03714.00
5.3.30.0030.03313.91
5.3.20.0070.03013.75
5.3.10.0000.03713.70
5.3.00.0030.03313.60
5.2.170.0070.03011.04
5.2.160.0000.03011.10
5.2.150.0000.03711.15
5.2.140.0000.03011.03
5.2.130.0000.03711.07
5.2.120.0000.03011.11
5.2.110.0070.02311.17
5.2.100.0000.04010.98
5.2.90.0030.02711.27
5.2.80.0000.03011.14
5.2.70.0030.03011.11
5.2.60.0030.03311.04
5.2.50.0070.02311.07
5.2.40.0030.02710.88
5.2.30.0000.03310.86
5.2.20.0030.02710.96
5.2.10.0000.03010.82
5.2.00.0000.03010.67
5.1.60.0030.02010.06
5.1.50.0030.02710.14
5.1.40.0030.0239.94
5.1.30.0000.02710.38
5.1.20.0030.02710.38
5.1.10.0030.03010.09
5.1.00.0000.02710.13
5.0.50.0000.0208.54
5.0.40.0030.0178.48
5.0.30.0000.0308.27
5.0.20.0000.0208.24
5.0.10.0000.0238.27
5.0.00.0000.0308.13
4.4.90.0030.0137.40
4.4.80.0000.0137.40
4.4.70.0000.0177.40
4.4.60.0000.0177.40
4.4.50.0000.0137.40
4.4.40.0000.0237.40
4.4.30.0070.0107.40
4.4.20.0030.0137.40
4.4.10.0000.0177.40
4.4.00.0000.0277.40
4.3.110.0000.0137.40
4.3.100.0000.0137.40
4.3.90.0030.0177.40
4.3.80.0000.0537.40
4.3.70.0030.0337.40
4.3.60.0030.0337.40
4.3.50.0000.0307.40
4.3.40.0000.0277.40
4.3.30.0000.0177.40
4.3.20.0030.0137.40
4.3.10.0000.0377.40
4.3.00.0000.0377.40

preferences:
33.82 ms | 401 KiB | 5 Q