3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait AccessibleProperties { public function __isset($property) { return property_exists($this, $property); } public function __get($property) { if (property_exists($this, $property)) { return $this->$property; } } } class Foo { use AccessibleProperties; protected $a = 'Some value'; } $foo = new Foo; $foo->a; // this works: returns 'Some value' var_dump(isset($foo->a)); // this doesn't work: returns false

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.0040.01118.43
8.3.50.0070.00719.73
8.3.40.0080.00818.77
8.3.30.0040.01118.67
8.3.20.0040.00421.90
8.3.10.0030.00623.65
8.3.00.0090.00023.65
8.2.180.0160.00716.75
8.2.170.0100.01322.96
8.2.160.0110.00420.38
8.2.150.0000.00824.18
8.2.140.0000.00824.66
8.2.130.0030.00526.16
8.2.120.0030.00717.80
8.2.110.0090.00021.00
8.2.100.0070.00417.59
8.2.90.0060.00320.61
8.2.80.0040.00417.97
8.2.70.0000.00817.50
8.2.60.0040.00417.63
8.2.50.0030.00517.63
8.2.40.0030.00617.91
8.2.30.0050.00219.30
8.2.20.0040.00417.96
8.2.10.0000.00720.68
8.2.00.0000.00819.31
8.1.280.0120.00325.92
8.1.270.0030.00518.83
8.1.260.0080.00026.35
8.1.250.0000.00828.09
8.1.240.0030.00622.53
8.1.230.0060.00620.60
8.1.220.0060.00317.74
8.1.210.0080.00018.95
8.1.200.0040.00417.35
8.1.190.0030.00617.35
8.1.180.0040.00418.10
8.1.170.0050.00317.62
8.1.160.0000.00818.90
8.1.150.0040.00418.88
8.1.140.0000.00823.98
8.1.130.0000.00717.38
8.1.120.0000.00717.40
8.1.110.0070.00017.38
8.1.100.0080.00017.35
8.1.90.0040.00417.48
8.1.80.0050.00217.47
8.1.70.0000.00817.45
8.1.60.0030.00517.47
8.1.50.0050.00317.52
8.1.40.0000.00817.55
8.1.30.0040.00417.68
8.1.20.0080.00017.69
8.1.10.0030.00517.64
8.1.00.0040.00417.55
8.0.300.0040.00419.98
8.0.290.0000.00916.75
8.0.280.0030.00318.36
8.0.270.0000.00816.82
8.0.260.0070.00016.71
8.0.250.0030.00516.92
8.0.240.0000.00616.93
8.0.230.0030.00316.82
8.0.220.0000.00716.79
8.0.210.0050.00216.88
8.0.200.0000.00716.86
8.0.190.0030.00316.82
8.0.180.0050.00216.89
8.0.170.0060.00316.90
8.0.160.0000.00816.76
8.0.150.0000.00716.73
8.0.140.0000.00716.85
8.0.130.0080.00013.30
8.0.120.0000.01016.85
8.0.110.0040.00416.78
8.0.100.0070.00016.86
8.0.90.0040.00416.83
8.0.80.0060.01316.88
8.0.70.0000.00716.70
8.0.60.0070.00016.72
8.0.50.0050.00216.86
8.0.30.0130.00417.09
8.0.20.0060.01217.40
8.0.10.0050.00216.91
8.0.00.0080.00816.84
7.4.330.0050.00016.84
7.4.320.0070.00016.41
7.4.300.0030.00316.61
7.4.290.0000.00716.58
7.4.280.0090.00016.64
7.4.270.0050.00516.58
7.4.260.0000.00716.58
7.4.250.0040.00416.62
7.4.240.0050.00216.69
7.4.230.0070.00016.70
7.4.220.0070.00016.49
7.4.210.0100.00516.50
7.4.200.0040.00416.71
7.4.160.0090.01116.51
7.4.140.0090.01117.86
7.4.130.0050.01316.59
7.4.120.0110.00816.67
7.4.110.0160.00316.42
7.4.100.0140.00416.52
7.4.90.0210.00316.56
7.4.80.0150.00319.39
7.4.70.0120.01216.41
7.4.60.0060.01016.69
7.4.50.0040.01116.45
7.4.40.0110.01116.50
7.4.00.0090.00615.13
7.3.330.0050.00013.29
7.3.320.0060.00013.18
7.3.310.0000.00816.21
7.3.300.0070.00016.32
7.3.290.0030.00316.27
7.3.280.0070.00916.29
7.3.260.0130.00716.40
7.3.240.0090.00916.35
7.3.230.0110.00716.38
7.3.210.0030.01316.31
7.3.200.0130.00316.56
7.3.190.0030.01316.32
7.3.180.0120.00916.52
7.3.170.0060.01116.28
7.3.160.0040.01116.57
7.3.00.0330.00314.04
7.2.330.0060.01016.56
7.2.320.0110.01116.56
7.2.310.0130.00316.72
7.2.300.0030.01316.43
7.2.290.0030.01316.72
7.2.130.0210.00614.64
7.2.120.3030.00714.47
7.2.110.0310.00314.94
7.2.100.0000.01414.44
7.2.90.0990.00614.88
7.2.80.0110.01114.72
7.2.70.0180.00415.07
7.2.60.2370.01014.81
7.2.50.0140.00915.03
7.2.40.1040.00314.71
7.2.30.2930.00614.81
7.2.20.0130.01314.74
7.2.10.0230.00914.66
7.2.00.0140.01015.16
7.1.250.1870.00613.80
7.0.330.2410.00313.25
5.6.380.0050.01014.30

preferences:
65.32 ms | 401 KiB | 5 Q