3v4l.org

run code in 300+ PHP versions simultaneously
<?php class ViewHelper { protected ReflectionProperty $class; public function __contruct(ReflectionProperty $class) { $this->class = $class; } protected function getListFields(mixed $object): array { $result = []; $properties = $class->getProperties(); foreach ($properties as $property) { $name = $property->getName(); $result [] = $name; } return $result; } public function escapeMetacharacters(string $text): string { return htmlspecialchars($text, ENT_QUOTES); } }

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)
8.4.120.0130.00722.41
8.4.110.0050.00518.96
8.4.100.0130.00717.67
8.4.90.0040.00522.45
8.4.80.0030.00518.47
8.4.70.0130.00918.14
8.4.60.0070.00919.04
8.4.50.0050.00618.58
8.4.40.0110.00717.61
8.4.30.0120.00618.77
8.4.20.0070.01318.79
8.4.10.0060.00319.19
8.3.250.0130.00617.02
8.3.240.0120.00716.38
8.3.230.0100.00916.67
8.3.220.0100.00818.71
8.3.210.0110.00916.61
8.3.200.0050.00316.63
8.3.190.0120.00616.96
8.3.180.0070.01216.95
8.3.170.0070.01120.28
8.3.160.0090.00918.15
8.3.150.0110.00717.05
8.3.140.0120.00616.63
8.3.130.0070.01018.30
8.3.120.0000.00818.73
8.3.110.0000.00920.94
8.3.100.0120.00024.06
8.3.90.0120.00426.77
8.3.80.0060.00317.97
8.3.70.0120.00618.30
8.3.60.0070.01016.50
8.3.50.0170.00316.48
8.3.40.0070.00720.31
8.3.30.0070.00720.39
8.3.20.0040.00424.18
8.3.10.0060.00724.66
8.3.00.0080.00624.66
8.2.290.0100.00118.76
8.2.280.0090.00718.27
8.2.270.0100.01017.06
8.2.260.0100.00016.26
8.2.250.0080.00018.37
8.2.240.0030.00618.95
8.2.230.0060.00322.58
8.2.220.0070.00437.54
8.2.210.0040.00426.77
8.2.200.0050.00518.04
8.2.190.0100.00716.64
8.2.180.0040.01216.50
8.2.170.0150.00318.84
8.2.160.0070.00722.96
8.2.150.0040.00425.66
8.2.140.0090.00424.66
8.2.130.0060.00724.66
8.2.120.0060.00824.66
8.2.110.0060.00624.66
8.2.100.0070.00424.66
8.2.90.0080.00624.66
8.2.80.0080.00624.66
8.2.70.0060.00624.66
8.2.60.0050.00724.66
8.2.50.0020.00824.66
8.2.40.0050.00424.66
8.2.30.0080.00024.66
8.2.20.0050.00324.66
8.2.10.0030.01024.66
8.2.00.0090.00424.66
8.1.330.0100.00816.04
8.1.320.0110.00815.96
8.1.310.0000.00817.79
8.1.300.0060.00318.42
8.1.290.0080.00030.84
8.1.280.0170.00025.92
8.1.270.0040.00424.66
8.1.260.0060.00224.66
8.1.250.0080.00524.66
8.1.240.0030.00524.66
8.1.230.0050.00424.66
8.1.220.0060.00824.66
8.1.210.0060.00724.66
8.1.200.0060.00824.66
8.1.190.0090.00524.66
8.1.180.0120.00324.66
8.1.170.0080.00724.66
8.1.160.0100.00524.66
8.1.150.0030.01124.66
8.1.140.0080.00424.66
8.1.130.0080.00324.66
8.1.120.0100.00224.66
8.1.110.0060.00524.66
8.1.100.0070.00524.66
8.1.90.0110.00524.66
8.1.80.0080.00824.66
8.1.70.0060.00824.66
8.1.60.0060.00324.66
8.1.50.0070.00124.66
8.1.40.0070.00124.66
8.1.30.0040.00424.66
8.1.20.0060.00324.66
8.1.10.0070.00124.66
8.1.00.0060.00324.66

preferences:
26.75 ms | 403 KiB | 5 Q