3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo {} $foo = new Foo; $rounds = 100000; $start = microtime(true); for($i=0; $i<$rounds; $i++) { get_class($foo); } 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.3.120.0030.03914.89
7.3.110.0070.03315.03
7.3.100.0070.03314.82
7.3.90.0060.03614.87
7.3.80.0060.03214.55
7.3.70.0040.02914.89
7.3.60.0030.03915.08
7.3.50.0130.02915.10
7.3.40.0030.04114.90
7.3.30.0000.03814.66
7.3.20.0000.04216.73
7.3.10.0130.02716.73
7.3.00.0030.03716.89
7.2.240.0100.04414.80
7.2.230.0060.03815.19
7.2.220.0000.05014.75
7.2.210.0070.04415.20
7.2.200.0090.04415.13
7.2.190.0100.04015.12
7.2.180.0100.03714.81
7.2.170.0030.04815.09
7.2.160.0070.04514.88
7.2.150.0100.03816.82
7.2.140.0030.04516.73
7.2.130.0070.04017.00
7.2.120.0070.03917.00
7.2.110.0060.04216.97
7.2.100.0070.04416.79
7.2.90.0130.03016.92
7.2.80.0000.05316.94
7.2.70.0100.04016.80
7.2.60.0060.04116.92
7.2.50.0030.04717.07
7.2.40.0100.03716.71
7.2.30.0130.03516.88
7.2.20.0070.04417.12
7.2.10.0060.04217.01
7.2.00.0060.03417.95
7.1.330.0030.06015.65
7.1.320.0030.06115.59
7.1.310.0130.05215.64
7.1.300.0070.05815.59
7.1.290.0000.05615.78
7.1.280.0030.05915.54
7.1.270.0060.05815.83
7.1.260.0070.05315.58
7.1.250.0030.05915.87
7.1.70.0070.03617.20
7.1.60.0030.07519.82
7.1.50.0030.07716.67
7.1.00.0030.12022.48
7.0.200.0030.03616.64
7.0.140.0100.11322.07
7.0.90.0630.11019.99
7.0.80.0570.12019.99
7.0.70.0500.11019.96
7.0.60.0430.12019.98
7.0.50.0370.09720.26
7.0.40.0130.10320.02
7.0.30.0030.13320.14
7.0.20.0200.10020.17
7.0.10.0070.13020.14
7.0.00.0070.11720.05
5.6.280.0070.15720.82
5.6.230.0130.14720.48
5.6.220.0100.16720.58
5.6.210.0130.16720.75
5.6.200.0030.15721.05
5.6.190.0100.14721.02
5.6.180.0070.10320.93
5.6.170.0030.15721.01
5.6.160.0170.17721.04
5.6.150.0070.17321.07
5.6.140.0070.17321.10
5.6.130.0070.11721.00
5.6.120.0130.15320.95
5.6.110.0070.13321.02
5.6.100.0030.11321.02
5.6.90.0070.13721.06
5.6.80.0030.16720.33
5.6.70.0070.14720.39
5.6.60.0100.17020.46
5.6.50.0030.18320.43
5.6.40.0070.15320.33
5.6.30.0070.17320.46
5.6.20.0030.12720.34
5.6.10.0070.10320.41
5.6.00.0170.14020.42
5.5.370.0200.15320.45
5.5.360.0070.16720.36
5.5.350.0170.14020.45
5.5.340.0070.14020.89
5.5.330.0130.14020.90
5.5.320.0130.15020.80
5.5.310.0270.15020.91
5.5.300.0230.14020.79
5.5.290.0070.16720.89
5.5.280.0000.13720.73
5.5.270.0070.16320.75
5.5.260.0270.16020.87
5.5.250.0000.15320.69
5.5.240.0130.17320.31
5.5.230.0070.15320.18
5.5.220.0030.11020.20
5.5.210.0070.15320.26
5.5.200.0030.16720.23
5.5.190.0130.15320.23
5.5.180.0170.14020.23
5.5.160.0000.12720.11
5.5.150.0070.13720.27
5.5.140.0030.16020.11
5.5.130.0130.16720.27
5.5.120.0100.16720.07
5.5.110.0170.16720.24
5.5.100.0100.15320.08
5.5.90.0070.10720.00
5.5.80.0070.18720.05
5.5.70.0100.15720.08
5.5.60.0130.17320.05
5.5.50.0130.17020.05
5.5.40.0130.13020.09
5.5.30.0000.11320.10
5.5.20.0070.14720.06
5.5.10.0000.16320.12
5.5.00.0100.15719.94
5.4.450.0170.09319.46
5.4.440.0130.16319.37
5.4.430.0030.18019.27
5.4.420.0030.13319.44
5.4.410.0130.17319.29
5.4.400.0030.11318.95
5.4.390.0130.13019.09
5.4.380.0170.16319.13
5.4.370.0100.15319.13
5.4.360.0130.17019.06
5.4.350.0100.17019.13
5.4.340.0130.14719.21
5.4.320.0070.11719.13
5.4.310.0000.11019.03
5.4.300.0000.16319.04
5.4.290.0030.12019.12
5.4.280.0100.17019.04
5.4.270.0100.10319.12
5.4.260.0030.15318.95
5.4.250.0030.14719.04
5.4.240.0100.14019.02
5.4.230.0070.17019.17
5.4.220.0100.10318.87
5.4.210.0170.15718.87
5.4.200.0030.14018.90
5.4.190.0100.15019.07
5.4.180.0070.14319.19
5.4.170.0130.15019.17
5.4.160.0170.14018.92
5.4.150.0000.10719.02
5.4.140.0100.10716.34
5.4.130.0000.12316.40
5.4.120.0030.14716.25
5.4.110.0000.15316.43
5.4.100.0030.13716.46
5.4.90.0100.14316.48
5.4.80.0070.12716.31
5.4.70.0030.16716.39
5.4.60.0030.12716.32
5.4.50.0000.13016.44
5.4.40.0130.12716.49
5.4.30.0100.14016.45
5.4.20.0070.12016.27
5.4.10.0130.16316.38
5.4.00.0030.16315.80
5.3.290.0100.03714.60
5.3.280.0030.07714.60
5.3.270.0070.06714.69
5.3.260.0070.08714.65
5.3.250.0100.07314.61
5.3.240.0070.06314.61
5.3.230.0000.05314.62
5.3.220.0070.03714.50
5.3.210.0030.04014.66
5.3.200.0030.06014.55
5.3.190.0070.07314.59
5.3.180.0070.07314.66
5.3.170.0070.08314.66
5.3.160.0030.08314.49
5.3.150.0070.07714.63
5.3.140.0030.07014.57
5.3.130.0130.05714.68
5.3.120.0070.06714.64
5.3.110.0030.08014.67
5.3.100.0070.06713.97
5.3.90.0030.07714.01
5.3.80.0070.04014.08
5.3.70.0000.05014.07
5.3.60.0000.04313.90
5.3.50.0070.06014.01
5.3.40.0030.03713.85
5.3.30.0070.03313.79
5.3.20.0130.04313.62
5.3.10.0000.04013.64
5.3.00.0070.03013.73
5.2.170.0030.03013.61
5.2.160.0070.03313.61
5.2.150.0070.03013.61
5.2.140.0070.03013.61
5.2.130.0000.03313.61
5.2.120.0070.02313.61
5.2.110.0070.02713.61
5.2.100.0030.02713.61
5.2.90.0000.03013.61
5.2.80.0000.03013.61
5.2.70.0000.03013.61
5.2.60.0000.03713.61
5.2.50.0030.03013.61
5.2.40.0030.02713.61
5.2.30.0070.03313.61
5.2.20.0000.03013.61
5.2.10.0000.03013.61
5.2.00.0100.05313.61
5.1.60.0100.01713.61
5.1.50.0000.02713.61
5.1.40.0030.02313.61
5.1.30.0000.05313.61
5.1.20.0030.02013.61
5.1.10.0000.02313.61
5.1.00.0030.03713.61
5.0.50.0030.02713.61
5.0.40.0030.02013.61
5.0.30.0000.03313.61
5.0.20.0000.02013.61
5.0.10.0030.02013.61
5.0.00.0000.02713.61
4.4.90.0000.02013.61
4.4.80.0000.02713.61
4.4.70.0030.01313.61
4.4.60.0000.02013.61
4.4.50.0000.01713.61
4.4.40.0000.02313.61
4.4.30.0070.01013.61
4.4.20.0030.01313.61
4.4.10.0030.01713.61
4.4.00.0000.02713.61
4.3.110.0000.01313.61
4.3.100.0030.01713.61
4.3.90.0030.01713.61
4.3.80.0000.02013.61
4.3.70.0000.01313.61
4.3.60.0000.01313.61
4.3.50.0000.01713.61
4.3.40.0000.02313.61
4.3.30.0000.01313.61
4.3.20.0070.01013.61
4.3.10.0000.01313.61
4.3.00.0000.01313.61

preferences:
38.52 ms | 401 KiB | 5 Q