3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { private int $foo; private int $bar = 1; public function propertyInitialized($name): bool { return property_exists($this, $name) && isset($this->$name); } } $foo = new foo; var_dump($foo->propertyInitialized('foo'), $foo->propertyInitialized('bar'));

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.3.60.0170.00316.62
8.3.50.0000.01516.42
8.3.40.0160.00618.97
8.3.30.0070.00718.67
8.3.20.0140.00321.73
8.3.10.0040.00421.73
8.3.00.0070.00323.70
8.2.180.0090.00616.63
8.2.170.0130.00322.96
8.2.160.0070.00722.08
8.2.150.0040.00424.18
8.2.140.0030.00624.66
8.2.130.0000.00726.16
8.2.120.0040.00426.16
8.2.110.0060.00321.03
8.2.100.0060.00617.91
8.2.90.0050.00318.12
8.2.80.0040.00418.34
8.2.70.0000.00817.63
8.2.60.0040.00417.93
8.2.50.0000.00818.07
8.2.40.0080.00019.66
8.2.30.0000.00818.13
8.2.20.0000.00718.07
8.2.10.0000.00719.31
8.2.00.0030.00519.27
8.1.280.0070.00725.92
8.1.270.0100.00022.13
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0080.00022.47
8.1.230.0080.00420.88
8.1.220.0030.00517.74
8.1.210.0040.00418.77
8.1.200.0000.00817.35
8.1.190.0060.00317.10
8.1.180.0050.00318.10
8.1.170.0030.00518.64
8.1.160.0040.00418.94
8.1.150.0040.00418.84
8.1.140.0050.00220.73
8.1.130.0000.00720.29
8.1.120.0030.00317.40
8.1.110.0000.00917.35
8.1.100.0040.00417.46
8.1.90.0000.00817.37
8.1.80.0000.00717.46
8.1.70.0000.00717.35
8.1.60.0060.00317.60
8.1.50.0050.00317.51
8.1.40.0050.00317.46
8.1.30.0050.00317.68
8.1.20.0030.00617.53
8.1.10.0040.00417.57
8.1.00.0040.00417.45
8.0.300.0040.00419.89
8.0.290.0040.00416.75
8.0.280.0050.00318.34
8.0.270.0000.00717.98
8.0.260.0030.00319.96
8.0.250.0070.00016.93
8.0.240.0050.00316.95
8.0.230.0000.00717.00
8.0.220.0000.00716.79
8.0.210.0030.00716.93
8.0.200.0030.00316.85
8.0.190.0000.00716.93
8.0.180.0000.00716.97
8.0.170.0040.00416.82
8.0.160.0000.00716.89
8.0.150.0040.00416.82
8.0.140.0050.00216.89
8.0.130.0000.00713.33
8.0.120.0000.00716.91
8.0.110.0020.00516.98
8.0.100.0000.00716.93
8.0.90.0030.00616.89
8.0.80.0050.01116.90
8.0.70.0040.00416.77
8.0.60.0000.00716.77
8.0.50.0000.00716.93
8.0.30.0070.01117.15
8.0.20.0150.00617.07
8.0.10.0030.00317.09
8.0.00.0110.00916.55
7.4.330.0030.00316.89
7.4.320.0070.00016.41
7.4.300.0000.00716.47
7.4.290.0030.00516.41
7.4.280.0040.00416.49
7.4.270.0030.00316.65
7.4.260.0000.00613.21
7.4.250.0070.00016.42
7.4.240.0020.00516.59
7.4.230.0000.00716.68
7.4.220.0030.00416.58
7.4.210.0070.00816.66
7.4.200.0000.00716.67
7.4.140.0090.00917.86
7.4.130.0100.01216.56
7.4.120.0180.00016.66
7.4.110.0070.01016.61
7.4.100.0050.01116.67
7.4.90.0100.00616.55
7.4.80.0110.00719.39
7.4.70.0120.00616.42
7.4.60.0150.00316.50
7.4.50.0060.00616.64
7.4.40.0100.00616.43
7.4.20.0090.00616.45
7.4.10.0140.00316.50
7.4.00.0090.01216.64
7.3.330.0040.00415.99
7.3.320.0000.00513.19
7.3.310.0000.00716.02
7.3.300.0000.00616.05
7.3.290.0060.01016.14
7.3.280.0030.01616.22
7.3.260.0070.01116.22
7.3.230.0070.01016.13
7.3.210.0040.01416.23
7.3.200.0120.00316.32
7.3.190.0040.01316.24
7.3.180.0090.00616.37
7.3.170.0100.00716.16
7.3.160.0070.01016.25
7.3.130.0070.01416.45
7.3.120.0070.01416.40
7.3.110.0180.00316.10
7.3.100.0000.01616.38
7.3.90.0030.01216.17
7.3.80.0120.00916.28
7.3.70.0140.00716.23
7.3.60.0100.01016.16
7.3.50.0070.01316.21
7.3.40.0040.01216.09
7.3.30.0150.00016.08
7.3.20.0120.00616.25
7.3.10.0070.01116.28
7.3.00.0100.01016.25
7.2.330.0100.00716.43
7.2.320.0060.01516.21
7.2.310.0080.00816.24
7.2.300.0150.00916.41
7.2.290.0060.01016.25
7.2.260.0130.00316.40
7.2.250.0120.00916.38
7.2.240.0030.01416.41
7.2.230.0100.00716.29
7.2.220.0120.00616.49
7.2.210.0130.00316.16
7.2.200.0030.01916.39
7.2.190.0090.01216.13
7.2.180.0140.00316.38
7.2.170.0000.01716.37
7.2.160.0070.01116.33
7.2.150.0090.01116.32
7.2.140.0100.01316.41
7.2.130.0140.00716.34
7.2.120.0030.01416.39
7.2.110.0100.00616.31
7.2.100.0140.00316.28
7.2.90.0100.00616.34
7.2.80.0130.00316.54
7.2.70.0120.00416.44
7.2.60.0100.00916.30
7.2.50.0030.01316.32
7.2.40.0000.01616.39
7.2.30.0090.00816.47
7.2.20.0070.01016.46
7.2.10.0060.00916.30
7.2.00.0130.00916.42

preferences:
36.34 ms | 400 KiB | 5 Q