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'), $foo->propertyInitialized('doesNotExist'));

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.0140.00716.50
8.3.50.0130.00716.55
8.3.40.0150.00018.81
8.3.30.0070.00718.71
8.3.20.0180.00021.89
8.3.10.0030.00521.73
8.3.00.0070.00021.77
8.2.180.0100.00716.36
8.2.170.0070.00722.96
8.2.160.0090.00420.22
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0030.00526.16
8.2.110.0030.00722.16
8.2.100.0160.00017.59
8.2.90.0040.00417.75
8.2.80.0000.00818.90
8.2.70.0000.00817.75
8.2.60.0060.00317.75
8.2.50.0050.00518.05
8.2.40.0090.00018.16
8.2.30.0030.00619.40
8.2.20.0000.00718.07
8.2.10.0040.00419.25
8.2.00.0060.00319.19
8.1.280.0130.00325.92
8.1.270.0040.00422.02
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0100.00019.01
8.1.230.0120.00020.99
8.1.220.0040.00418.52
8.1.210.0040.00418.77
8.1.200.0000.00817.25
8.1.190.0030.00617.35
8.1.180.0000.00818.10
8.1.170.0000.00817.62
8.1.160.0040.00418.89
8.1.150.0000.00818.91
8.1.140.0070.00020.78
8.1.130.0080.00017.47
8.1.120.0000.00817.48
8.1.110.0070.00017.52
8.1.100.0060.00317.47
8.1.90.0000.00717.40
8.1.80.0000.00917.45
8.1.70.0030.00317.39
8.1.60.0060.00317.49
8.1.50.0000.00917.43
8.1.40.0040.00417.44
8.1.30.0050.00317.49
8.1.20.0030.00617.68
8.1.10.0030.00517.57
8.1.00.0040.00417.48
8.0.300.0000.00818.77
8.0.290.0050.00316.58
8.0.280.0040.00418.47
8.0.270.0070.00017.93
8.0.260.0000.00716.83
8.0.250.0030.00316.94
8.0.240.0050.00316.92
8.0.230.0000.00716.84
8.0.220.0050.00216.94
8.0.210.0100.00016.90
8.0.200.0000.00716.83
8.0.190.0040.00416.99
8.0.180.0000.00716.94
8.0.170.0060.00316.96
8.0.160.0040.00416.97
8.0.150.0050.00216.73
8.0.140.0040.00416.69
8.0.130.0030.00313.33
8.0.120.0040.00416.86
8.0.110.0040.00416.91
8.0.100.0000.00716.94
8.0.90.0000.00916.75
8.0.80.0060.01016.86
8.0.70.0040.00416.78
8.0.60.0070.00016.73
8.0.50.0040.00416.73
8.0.30.0140.00317.16
8.0.20.0080.01217.00
8.0.10.0040.00417.09
8.0.00.0030.01416.82
7.4.330.0000.00516.67
7.4.320.0040.00416.53
7.4.300.0030.00316.43
7.4.290.0060.00016.60
7.4.280.0050.00316.60
7.4.270.0040.00416.62
7.4.260.0030.00213.29
7.4.250.0000.00716.61
7.4.240.0040.00416.51
7.4.230.0000.00716.42
7.4.220.0040.00416.43
7.4.210.0100.00816.56
7.4.200.0030.00316.36
7.4.140.0120.00617.86
7.4.130.0130.01016.48
7.4.120.0070.01016.64
7.4.110.0060.01216.57
7.4.100.0050.01116.60
7.4.90.0100.01016.66
7.4.80.0140.00919.39
7.4.70.0030.01316.44
7.4.60.0100.00616.46
7.4.50.0060.00816.50
7.4.40.0060.01116.49
7.4.20.0080.00816.78
7.4.10.0180.00316.48
7.4.00.0140.00716.61
7.3.330.0030.00316.26
7.3.320.0000.00513.22
7.3.310.0030.00316.01
7.3.300.0070.00016.03
7.3.290.0080.00616.17
7.3.280.0120.00916.18
7.3.260.0140.00416.30
7.3.230.0030.01316.20
7.3.210.0090.00916.19
7.3.200.0090.00616.40
7.3.190.0180.00316.33
7.3.180.0060.01116.28
7.3.170.0080.01216.20
7.3.160.0000.01916.17
7.3.130.0150.00016.12
7.3.120.0000.01516.02
7.3.110.0030.01716.13
7.3.100.0100.00716.48
7.3.90.0130.00716.19
7.3.80.0110.00416.32
7.3.70.0180.00416.18
7.3.60.0070.01416.27
7.3.50.0090.00916.02
7.3.40.0130.00616.27
7.3.30.0070.00716.17
7.3.20.0100.00616.01
7.3.10.0060.01016.27
7.3.00.0070.01016.13
7.2.330.0100.00716.31
7.2.320.0120.00616.39
7.2.310.0140.00616.57
7.2.300.0040.01216.32
7.2.290.0150.00316.45
7.2.260.0040.01216.39
7.2.250.0030.01716.10
7.2.240.0100.01016.45
7.2.230.0140.00716.28
7.2.220.0140.00616.21
7.2.210.0030.01316.16
7.2.200.0120.00916.19
7.2.190.0000.02116.32
7.2.180.0140.00716.36
7.2.170.0100.00716.29
7.2.160.0120.00316.12
7.2.150.0070.01016.36
7.2.140.0130.00316.39
7.2.130.0140.00316.36
7.2.120.0180.00016.25
7.2.110.0070.01016.19
7.2.100.0080.00816.45
7.2.90.0060.01516.48
7.2.80.0180.01616.20
7.2.70.0090.01416.15
7.2.60.0140.00416.31
7.2.50.0120.00616.26
7.2.40.0090.00916.62
7.2.30.0040.01316.19
7.2.20.0070.01016.27
7.2.10.0100.00716.33
7.2.00.0000.01616.16

preferences:
61.64 ms | 400 KiB | 5 Q