3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public $bar = 'bar'; } $foo = new Foo; $rounds = 1000000; $start = microtime(true); for($i=0; $i<$rounds; $i++) { $var = $foo->bar; } echo (microtime(true) - $start); echo "\n"; $start = microtime(true); $refl = new ReflectionProperty('Foo', 'bar'); for($i=0; $i<$rounds; $i++) { $var = $refl->getValue($foo); } echo (microtime(true) - $start); echo "\n"; $start = microtime(true); for($i=0; $i<$rounds; $i++) { $var = (new ReflectionProperty('Foo', 'bar'))->getValue($foo); } 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.10.0100.62014.92
7.4.00.0070.62814.69
7.3.130.0100.68514.86
7.3.120.0070.45215.10
7.3.110.0070.67515.07
7.3.100.0130.48214.82
7.3.90.0000.72115.00
7.3.80.0100.58014.61
7.3.70.0070.41615.02
7.3.60.0030.64314.68
7.3.50.0000.64714.52
7.3.40.0030.46014.84
7.3.30.0000.43314.75
7.3.20.0030.64916.46
7.3.10.0030.55916.32
7.3.00.0070.69916.73
7.2.260.0101.03014.68
7.2.250.0071.10115.31
7.2.240.0030.78114.63
7.2.230.0070.97915.05
7.2.220.0100.74214.91
7.2.210.0130.90115.03
7.2.200.0030.99214.80
7.2.190.0031.07514.88
7.2.180.0070.73614.95
7.2.170.0030.84115.01
7.2.160.0070.75015.07
7.2.150.0130.95416.71
7.2.140.0070.96716.64
7.2.130.0070.87816.96
7.2.120.0071.06616.75
7.2.110.0131.11417.03
7.2.100.0100.76516.83
7.2.90.0001.04216.90
7.2.80.0031.03416.89
7.2.70.0131.02016.79
7.2.60.0031.08016.70
7.2.50.0071.13717.14
7.2.40.0000.74316.92
7.2.30.0071.02116.75
7.2.20.0030.74817.04
7.2.10.0100.96116.73
7.2.00.0070.61717.72
7.1.330.0031.10115.74
7.1.320.0031.15715.57
7.1.310.0031.34815.93
7.1.300.0031.25515.98
7.1.290.0101.29415.82
7.1.280.0071.36515.59
7.1.270.0001.33915.65
7.1.260.0031.07415.84
7.1.250.0001.34215.80
7.1.240.0061.04315.53
7.1.230.0071.20115.88
7.1.220.0031.01315.98
7.1.210.0071.34915.84
7.1.200.0030.99315.88
7.1.190.0070.97315.93
7.1.180.0071.31515.75
7.1.170.0031.26215.92
7.1.160.0001.13815.81
7.1.150.0031.40215.48
7.1.140.0101.10215.54
7.1.130.0001.33315.74
7.1.120.0031.07615.86
7.1.110.0071.22315.79
7.1.100.0100.99515.95
7.1.90.0031.20015.96
7.1.80.0001.07915.92
7.1.70.0050.90316.51
7.1.60.0070.91417.49
7.1.50.0030.93616.49
7.1.40.0031.10715.59
7.1.30.0071.15615.74
7.1.20.0070.95915.41
7.1.10.0000.98115.50
7.1.00.0030.97419.11
7.0.330.0031.24315.54
7.0.320.0031.19115.36
7.0.310.0031.00915.45
7.0.300.0070.97915.36
7.0.290.0001.41415.46
7.0.280.0071.29215.46
7.0.270.0101.32215.51
7.0.260.0071.35115.50
7.0.250.0071.24215.60
7.0.240.0101.32115.29
7.0.230.0071.23015.39
7.0.220.0031.10415.61
7.0.210.0031.20715.14
7.0.200.0130.86815.25
7.0.190.0031.29315.56
7.0.180.0071.22415.47
7.0.170.0031.14515.33
7.0.160.0071.03215.46
7.0.150.0031.24015.31
7.0.140.0070.93818.77
7.0.130.0031.22315.34
7.0.120.0030.84718.73
7.0.110.0071.40615.51
7.0.100.0031.25315.64
7.0.90.0031.41615.58
7.0.80.0410.94817.75
7.0.70.0170.86417.66
7.0.60.0280.85117.71
7.0.50.0251.03517.88
7.0.40.0101.00016.81
7.0.30.0071.02516.82
7.0.20.0030.81916.82
7.0.10.0031.00816.90
7.0.00.0051.03116.81
5.6.400.0101.74514.68
5.6.390.0032.43814.41
5.6.380.0031.72114.70
5.6.370.0032.13614.35
5.6.360.0101.77014.72
5.6.350.0032.45314.63
5.6.340.0102.40114.33
5.6.330.0071.70714.57
5.6.320.0072.24714.29
5.6.310.0101.80614.64
5.6.300.0072.29714.55
5.6.290.0032.18214.31
5.6.280.0031.71117.44
5.6.270.0101.98914.09
5.6.260.0001.93014.24
5.6.250.0131.89714.49
5.6.240.0032.41514.39
5.6.230.0051.44617.42
5.6.220.0051.39417.52
5.6.210.0051.72717.51
5.6.200.0051.74317.72
5.6.190.0101.49417.62
5.6.180.0081.62117.73
5.6.170.0051.60817.78
5.6.160.0071.51517.67
5.6.150.0021.62417.55
5.6.140.0151.62717.59
5.6.130.0121.73417.76
5.6.120.0101.68217.75
5.6.110.0021.27917.55
5.6.100.0081.70717.68
5.6.90.0121.48117.81
5.6.80.0031.51917.35
5.6.70.0031.42817.29
5.6.60.0051.49917.50
5.6.50.0071.65317.24
5.6.40.0131.35517.31
5.6.30.0071.46917.32
5.6.20.0071.55117.26
5.6.10.0021.50417.28
5.6.00.0051.62017.32
5.5.380.0032.39014.41
5.5.370.0001.47617.43
5.5.360.0071.40317.31
5.5.350.0151.56917.22
5.5.340.0081.59417.36
5.5.330.0071.33517.59
5.5.320.0051.37617.52
5.5.310.0051.66117.63
5.5.300.0181.43117.53
5.5.290.0071.77417.56
5.5.280.0031.45117.78
5.5.270.0101.69417.57
5.5.260.0051.46417.69
5.5.250.0071.42017.34
5.5.240.0051.62517.31
5.5.230.0121.38617.12
5.5.220.0031.74217.09
5.5.210.0031.60917.20
5.5.200.0101.47217.18
5.5.190.0051.73617.08
5.5.180.0101.67317.15
5.5.170.0032.11314.24
5.5.160.0031.68317.20
5.5.150.0071.71317.28
5.5.140.0031.67017.31
5.5.130.0051.59817.23
5.5.120.0001.29617.07
5.5.110.0051.65017.29
5.5.100.0031.58117.15
5.5.90.0031.59817.17
5.5.80.0081.40917.15
5.5.70.0081.61217.08
5.5.60.0101.68617.20
5.5.50.0051.74617.23
5.5.40.0031.64617.14
5.5.30.0031.44017.03
5.5.20.0301.35317.02
5.5.10.0081.46517.14
5.5.00.0051.30517.11
5.4.450.0181.63315.29
5.4.440.0071.72915.30
5.4.430.0051.48315.30
5.4.420.0051.77415.29
5.4.410.0581.39315.08
5.4.400.0031.62114.97
5.4.390.0031.38415.03
5.4.380.0051.72614.99
5.4.370.0031.59614.97
5.4.360.0081.55914.94
5.4.350.0051.65215.01
5.4.340.0021.62215.15
5.4.330.0002.15411.11
5.4.320.0031.60514.99
5.4.310.0031.28614.82
5.4.300.0081.32815.15
5.4.290.0021.64114.99
5.4.280.0021.66715.09
5.4.270.0021.67815.03
5.4.260.0051.48815.00
5.4.250.0021.71215.03
5.4.240.0071.67915.04
5.4.230.0021.69615.14
5.4.220.0081.74215.10
5.4.210.0051.74415.06
5.4.200.0031.40215.05
5.4.190.0071.61314.98
5.4.180.0051.76115.12
5.4.170.0051.74714.93
5.4.160.0021.74515.09
5.4.150.0021.59914.97
5.4.140.0021.77413.74
5.4.130.0071.69613.68
5.4.120.0051.46013.59
5.4.110.0071.57913.74
5.4.100.0021.49413.83
5.4.90.0051.56113.62
5.4.80.0051.66113.70
5.4.70.0021.40213.83
5.4.60.0031.71813.60
5.4.50.0031.66213.69
5.4.40.0031.62513.71
5.4.30.0031.38613.72
5.4.20.0071.48013.82
5.4.10.0081.31513.79
5.4.00.0051.37713.50
5.3.290.0020.02312.60
5.3.280.0070.02712.55
5.3.270.0050.03712.56
5.3.260.0070.01312.61
5.3.250.0020.04712.56
5.3.240.0070.02712.57
5.3.230.0070.01312.55
5.3.220.0030.03212.64
5.3.210.0050.02712.63
5.3.200.0050.04512.62
5.3.190.0050.04212.63
5.3.180.0050.02112.54
5.3.170.0050.01812.60
5.3.160.0030.04012.54
5.3.150.0030.02312.60
5.3.140.0050.04212.59
5.3.130.0000.04512.58
5.3.120.0020.03512.61
5.3.110.0070.03812.61
5.3.100.0000.02212.34
5.3.90.0070.03312.37
5.3.80.0070.02012.37
5.3.70.0130.02312.36
5.3.60.0050.04012.33
5.3.50.0050.03212.28
5.3.40.0120.02712.30
5.3.30.0040.02712.24
5.3.20.0090.02212.16
5.3.10.0070.03812.08
5.3.00.0060.03512.11
5.2.170.0100.05711.68
5.2.160.0070.04711.68
5.2.150.0030.04711.68
5.2.140.0030.06711.68
5.2.130.0070.05011.68
5.2.120.0070.03711.68
5.2.110.0070.03711.68
5.2.100.0070.03311.68
5.2.90.0070.05711.68
5.2.80.0100.05311.68
5.2.70.0070.06311.68
5.2.60.0100.06011.68
5.2.50.0070.04011.68
5.2.40.0030.05311.68
5.2.30.0130.04311.68
5.2.20.0030.06311.68
5.2.10.0170.05011.68
5.2.00.0030.05711.68
5.1.60.0070.05011.68
5.1.50.0000.04711.68
5.1.40.0030.03011.68
5.1.30.0100.04711.68
5.1.20.0070.05311.68
5.1.10.0100.02311.68
5.1.00.0070.02311.68
5.0.50.0000.03011.68
5.0.40.0070.02011.68
5.0.30.0000.05311.68
5.0.20.0070.03711.68
5.0.10.0030.01711.68
5.0.00.0000.06711.68
4.4.90.0000.02011.68
4.4.80.0030.03711.68
4.4.70.0030.02311.68
4.4.60.0000.02711.68
4.4.50.0000.03711.68
4.4.40.0070.04011.68
4.4.30.0000.02311.68
4.4.20.0070.01711.68
4.4.10.0030.02311.68
4.4.00.0000.02711.68
4.3.110.0000.01711.68
4.3.100.0030.01711.68
4.3.90.0030.02711.68
4.3.80.0030.04711.68
4.3.70.0070.01711.68
4.3.60.0000.02011.68
4.3.50.0030.03311.68
4.3.40.0070.04711.68
4.3.30.0000.02711.68
4.3.20.0000.02311.68
4.3.10.0030.03011.68
4.3.00.0000.03711.68

preferences:
33.18 ms | 401 KiB | 5 Q