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"; $start = microtime(true); for($i=0; $i<$rounds; $i++) { $reflection = new ReflectionClass($foo); $reflection->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.0100.24614.77
7.3.120.0140.33814.96
7.3.110.0120.38614.75
7.3.100.0070.31014.85
7.3.90.0090.29914.83
7.3.80.0080.29214.93
7.3.70.0090.31414.75
7.3.60.0050.29614.66
7.3.50.0090.31214.78
7.3.40.0080.31614.88
7.3.30.0050.30014.66
7.3.20.0050.31016.05
7.3.10.0090.29016.06
7.3.00.0080.27216.08
7.2.250.0120.45515.06
7.2.240.0030.42915.11
7.2.230.0090.42214.94
7.2.220.0060.42014.93
7.2.210.0060.40614.95
7.2.200.0070.38314.99
7.2.190.0110.38114.84
7.2.180.0090.38214.88
7.2.170.0110.43414.93
7.2.160.0220.39914.68
7.2.150.0130.36315.00
7.2.140.0190.49115.03
7.2.130.0210.39915.87
7.2.120.0140.37316.67
7.2.110.0160.37016.69
7.2.100.0110.36716.67
7.2.90.0180.34016.82
7.2.80.0100.34816.56
7.2.70.0080.36916.68
7.2.60.0160.38116.79
7.2.50.0080.35516.74
7.2.40.0110.35816.70
7.2.30.0080.35516.92
7.2.20.0210.35616.68
7.2.10.0050.34916.71
7.2.00.0100.32917.54
7.1.330.0040.53215.09
7.1.320.0100.50115.19
7.1.310.0070.49815.17
7.1.300.0080.60115.14
7.1.290.0050.61915.11
7.1.280.0070.53715.18
7.1.270.0080.55315.25
7.1.260.0050.54615.17
7.1.250.0230.46615.65
7.1.240.0130.51515.53
7.1.230.0160.40615.47
7.1.220.0200.45315.81
7.1.210.0060.41415.76
7.1.200.0100.44815.78
7.1.190.0070.41815.72
7.1.180.0200.46815.85
7.1.170.0160.51915.68
7.1.160.0220.40815.67
7.1.150.0130.44515.66
7.1.140.0190.42015.76
7.1.130.0060.40115.81
7.1.120.0290.45215.69
7.1.110.0230.40615.77
7.1.100.0130.46915.89
7.1.90.0260.47715.87
7.1.80.0130.40915.52
7.1.70.0080.36516.37
7.1.60.0100.39417.38
7.1.50.0080.40416.45
7.1.40.0130.40115.56
7.1.30.0330.43815.55
7.1.20.0060.39915.75
7.1.10.0260.48315.78
7.1.00.0670.38718.10
7.0.330.0100.45515.28
7.0.320.0130.41715.54
7.0.310.0060.40015.56
7.0.300.0160.46515.42
7.0.290.0380.48515.32
7.0.280.0190.38515.34
7.0.270.0160.40315.39
7.0.260.0200.40415.34
7.0.250.0100.41615.22
7.0.240.0130.42215.10
7.0.230.0160.42915.45
7.0.220.0100.39015.34
7.0.210.0060.41715.41
7.0.200.0000.40716.08
7.0.190.0160.38415.16
7.0.180.0030.40415.39
7.0.170.0330.44415.35
7.0.160.0400.44615.09
7.0.150.0030.41615.32
7.0.140.0070.38918.78
7.0.130.0130.46013.50
7.0.120.0110.38317.83
7.0.110.0130.40713.49
7.0.100.0090.43213.49
7.0.90.0100.40613.53
7.0.80.0450.64213.33
7.0.70.0050.42217.41
7.0.60.0120.41517.47
7.0.50.0060.40717.56
7.0.40.0080.37116.82
7.0.30.0100.40216.89
7.0.20.0100.44316.74
7.0.10.0180.41416.68
7.0.00.0230.37116.64
5.6.400.0160.88914.27
5.6.390.0250.91414.38
5.6.380.0230.91214.16
5.6.370.0190.93714.20
5.6.360.0200.87814.49
5.6.350.0460.89414.47
5.6.340.0230.85714.09
5.6.330.0290.89114.20
5.6.320.0220.91014.55
5.6.310.0260.87914.48
5.6.300.0390.94414.23
5.6.290.0261.03514.01
5.6.280.0170.78317.62
5.6.270.0130.95414.41
5.6.260.0190.85214.37
5.6.250.0921.19114.21
5.6.240.0321.05114.04
5.6.230.0321.06214.23
5.6.220.0180.82817.36
5.6.210.0100.81317.37
5.6.200.0130.86217.58
5.6.190.0490.81617.48
5.6.180.0270.85517.57
5.6.170.0280.96117.69
5.6.160.0160.79417.54
5.6.150.0210.76317.69
5.6.140.0190.86217.66
5.6.130.0310.83017.60
5.6.120.0210.75617.79
5.6.110.0080.83117.56
5.6.100.0080.82517.43
5.6.90.0120.83617.65
5.6.80.0140.84717.25
5.6.70.0250.87217.29
5.6.60.0140.86917.18
5.6.50.0290.85317.08
5.6.40.0320.86617.25
5.6.30.0150.79517.41
5.6.20.0170.90017.38
5.6.10.0100.83617.29
5.6.00.0180.91717.24
5.5.380.0331.14613.95
5.5.370.0290.89714.16
5.5.360.0190.81717.19
5.5.350.0080.84617.26
5.5.340.0180.81417.59
5.5.330.0290.80717.36
5.5.320.0140.83017.37
5.5.310.0720.82617.57
5.5.300.0200.70517.57
5.5.290.0130.87417.41
5.5.280.0190.73917.56
5.5.270.0310.94817.41
5.5.260.0240.85117.47
5.5.250.0220.90417.41
5.5.240.0110.80217.04
5.5.230.0130.85317.24
5.5.220.0130.84217.14
5.5.210.0110.81117.17
5.5.200.0140.84717.16
5.5.190.0131.10917.05
5.5.180.0130.82017.23
5.5.170.0190.86714.34
5.5.160.0270.84917.09
5.5.150.0130.88317.04
5.5.140.0150.88017.29
5.5.130.0210.86617.07
5.5.120.0150.82516.96
5.5.110.0110.77317.02
5.5.100.0200.86516.94
5.5.90.0190.90217.10
5.5.80.0150.84917.03
5.5.70.0080.82017.08
5.5.60.0220.87217.20
5.5.50.0290.81117.10
5.5.40.0290.77917.05
5.5.30.0110.74317.24
5.5.20.0100.91716.99
5.5.10.0110.71817.15
5.5.00.0080.78117.09
5.4.450.0480.81215.39
5.4.440.0210.78415.37
5.4.430.0210.83915.02
5.4.420.0230.86115.20
5.4.410.0210.76115.16
5.4.400.0080.80615.16
5.4.390.0130.84115.18
5.4.380.0440.91815.18
5.4.370.0200.83415.12
5.4.360.0150.80015.11
5.4.350.0130.84614.95
5.4.340.0080.83515.11
5.4.330.0230.82910.90
5.4.320.0200.81215.13
5.4.310.0280.92115.04
5.4.300.0180.90315.00
5.4.290.0110.89414.96
5.4.280.0160.84815.03
5.4.270.0150.88315.04
5.4.260.0190.84014.85
5.4.250.0130.83814.91
5.4.240.0200.86414.91
5.4.230.0150.87915.21
5.4.220.0110.86214.85
5.4.210.0200.84415.03
5.4.200.0190.81114.99
5.4.190.0130.75215.17
5.4.180.0130.77315.07
5.4.170.0050.71515.00
5.4.160.0080.90014.77
5.4.150.0080.82214.92
5.4.140.0070.81813.63
5.4.130.0160.82913.69
5.4.120.0070.83113.76
5.4.110.0161.03013.68
5.4.100.0140.90813.65
5.4.90.0180.88313.62
5.4.80.0100.80413.80
5.4.70.0080.80313.69
5.4.60.0240.83113.54
5.4.50.0110.81013.52
5.4.40.0130.72413.77
5.4.30.0110.82813.85
5.4.20.0100.82813.75
5.4.10.0070.76213.77
5.4.00.0080.73313.58
5.3.290.0130.95112.64
5.3.280.0181.01612.60
5.3.270.0080.84012.65
5.3.260.0080.90712.53
5.3.250.0100.86812.60
5.3.240.0100.96412.52
5.3.230.0140.90012.63
5.3.220.0470.95112.55
5.3.210.0131.10112.47
5.3.200.0211.13512.51
5.3.190.0311.17712.54
5.3.180.0081.00012.59
5.3.170.0051.04712.64
5.3.160.0161.03012.56
5.3.150.0550.90512.61
5.3.140.0131.00912.54
5.3.130.0130.93612.52
5.3.120.0590.91212.54
5.3.110.0160.80012.56
5.3.100.0320.89412.23
5.3.90.0160.90212.26
5.3.80.0221.04212.16
5.3.70.0080.97212.24
5.3.60.0030.92212.25
5.3.50.0290.97312.28
5.3.40.0210.89112.16
5.3.30.0070.81712.21
5.3.20.0050.87512.08
5.3.10.0150.84711.98
5.3.00.0180.80211.97
5.2.170.0100.91811.35
5.2.160.0130.87811.35
5.2.150.0100.83911.35
5.2.140.0130.86311.35
5.2.130.0180.83611.35
5.2.120.0110.80811.35
5.2.110.0580.83911.35
5.2.100.0100.85211.35
5.2.90.0160.83911.35
5.2.80.0180.88311.35
5.2.70.0130.80711.35
5.2.60.0130.83411.35
5.2.50.0080.86311.35
5.2.40.0150.86711.35
5.2.30.0200.80011.35
5.2.20.0130.98211.35
5.2.10.0100.79911.35
5.2.00.0100.76911.35
5.1.60.0240.77511.35
5.1.50.0030.74011.35
5.1.40.0180.86011.35
5.1.30.0180.85411.35
5.1.20.0080.75511.35
5.1.10.0100.85611.35
5.1.00.0160.70811.35
5.0.50.0151.29711.35
5.0.40.0051.31511.35
5.0.30.0281.29111.35
5.0.20.0151.21211.35
5.0.10.0051.23211.35
5.0.00.0181.30411.35
4.4.90.0070.33411.35
4.4.80.0050.32111.35
4.4.70.0120.41511.35
4.4.60.0050.37911.35
4.4.50.0050.38011.35
4.4.40.0070.30211.35
4.4.30.0110.31711.35
4.4.20.0050.32111.35
4.4.10.0210.33611.35
4.4.00.0050.35511.35
4.3.110.0060.38111.35
4.3.100.0050.31411.35
4.3.90.0100.33511.35
4.3.80.0100.34611.35
4.3.70.0160.39811.35
4.3.60.0230.42311.35
4.3.50.0060.31811.35
4.3.40.0030.35711.35
4.3.30.0080.37511.35
4.3.20.0020.30111.35
4.3.10.0230.38011.35
4.3.00.0030.29811.35

preferences:
35.75 ms | 400 KiB | 5 Q