3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { private $_b; function __construc($b) { $this->_b = $b; } function __get($name) { echo "get $name \n"; return $this->{'_' . $name}; } function __isset($name) { echo "isset $name\n"; return true; } } class B { private $_c; function __construc($c) { $this->_c = $c; } function __get($name) { echo "get $name \n"; return $this->{'_' . $name}; } function __isset($name) { echo "isset $name\n"; return true; } } $c = new B('plop'); $b = new B($c); $a = new A($b); var_dump(isset($a->b->c));

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.0060.01318.18
8.3.50.0140.00718.07
8.3.40.0210.00018.68
8.3.30.0070.00718.43
8.3.20.0150.00419.21
8.3.10.0000.00823.70
8.3.00.0040.00420.69
8.2.180.0180.00418.29
8.2.170.0070.00722.96
8.2.160.0060.00922.12
8.2.150.0080.00024.18
8.2.140.0000.00724.66
8.2.130.0040.00419.64
8.2.120.0080.00026.35
8.2.110.0030.00720.47
8.2.100.0070.00417.78
8.2.90.0000.01117.75
8.2.80.0090.00017.97
8.2.70.0000.00917.93
8.2.60.0000.00818.09
8.2.50.0030.00618.10
8.2.40.0060.00319.34
8.2.30.0040.00419.33
8.2.20.0040.00417.99
8.2.10.0040.00418.14
8.2.00.0000.00817.67
8.1.280.0090.00625.92
8.1.270.0040.00423.99
8.1.260.0040.00426.35
8.1.250.0140.00328.09
8.1.240.0000.00922.19
8.1.230.0040.00817.42
8.1.220.0040.00417.74
8.1.210.0030.00518.77
8.1.200.0060.00317.22
8.1.190.0040.00417.22
8.1.180.0040.00418.10
8.1.170.0050.00318.58
8.1.160.0040.00418.91
8.1.150.0000.00718.78
8.1.140.0030.00322.16
8.1.130.0030.00320.34
8.1.120.0000.00717.42
8.1.110.0040.00417.50
8.1.100.0040.00417.40
8.1.90.0000.00717.52
8.1.80.0000.00717.38
8.1.70.0040.00417.48
8.1.60.0030.01017.53
8.1.50.0040.00417.59
8.1.40.0030.00617.58
8.1.30.0060.00617.65
8.1.20.0000.00717.64
8.1.10.0000.00717.66
8.1.00.0000.01017.50
8.0.300.0000.00718.77
8.0.290.0050.00216.88
8.0.280.0000.00718.46
8.0.270.0000.00717.29
8.0.260.0000.00618.47
8.0.250.0080.00017.00
8.0.240.0000.00716.96
8.0.230.0030.00316.97
8.0.220.0030.00316.88
8.0.210.0030.00316.89
8.0.200.0060.00317.01
8.0.190.0040.00716.98
8.0.180.0080.00016.93
8.0.170.0030.00616.94
8.0.160.0070.00017.00
8.0.150.0040.00416.89
8.0.140.0030.00316.89
8.0.130.0000.00513.30
8.0.120.0000.00816.93
8.0.110.0040.00416.98
8.0.100.0000.00716.80
8.0.90.0060.00316.93
8.0.80.0060.01016.88
8.0.70.0040.00416.86
8.0.60.0040.00416.91
8.0.50.0040.00416.88
8.0.30.0090.00917.27
8.0.20.0090.01217.40
8.0.10.0040.00417.10
8.0.00.0070.01516.79
7.4.330.0000.00515.55
7.4.320.0060.00016.63
7.4.300.0040.00416.57
7.4.290.0060.00016.50
7.4.280.0040.00416.55
7.4.270.0030.00316.54
7.4.260.0020.00516.52
7.4.250.0000.00716.57
7.4.240.0000.00716.63
7.4.230.0070.00016.64
7.4.220.0080.00016.52
7.4.210.0080.00716.56
7.4.200.0030.00316.43
7.4.160.0090.00916.43
7.4.140.0090.00817.86
7.4.130.0030.01416.74
7.4.120.0070.01016.56
7.4.110.0110.00716.45
7.4.100.0120.00616.51
7.4.90.0090.01316.75
7.4.80.0130.00919.39
7.4.70.0090.00916.57
7.4.60.0110.01116.37
7.4.50.0060.00916.46
7.4.40.0060.01216.64
7.4.10.0070.01014.90
7.4.00.0070.00815.05
7.3.330.0030.00313.34
7.3.320.0060.00013.14
7.3.310.0000.00816.21
7.3.300.0030.00316.37
7.3.290.0070.00016.37
7.3.280.0070.01016.29
7.3.260.0090.01016.28
7.3.240.0090.00716.39
7.3.230.0040.01216.23
7.3.210.0140.00316.51
7.3.200.0060.01016.33
7.3.190.0060.01116.56
7.3.180.0170.00016.32
7.3.170.0120.00916.31
7.3.160.0100.00716.43
7.3.130.0030.01614.76
7.3.120.0090.00614.85
7.3.110.0090.00914.85
7.3.100.0110.00415.05
7.3.90.0070.00714.84
7.3.80.0000.01414.60
7.3.70.0060.00914.89
7.3.60.0110.00414.48
7.3.50.0000.01014.76
7.3.40.0000.01614.67
7.3.30.0000.01414.66
7.3.20.0090.00616.69
7.3.10.0030.01116.42
7.3.00.0070.00716.65
7.2.330.0040.01816.59
7.2.320.0110.01016.52
7.2.310.0100.00716.82
7.2.300.0100.00716.50
7.2.290.0100.00716.81
7.2.260.0060.01014.89
7.2.250.0090.00614.92
7.2.240.0100.00614.89
7.2.230.0030.01414.53
7.2.220.0070.01014.88
7.2.210.0070.00715.15
7.2.200.0100.00715.20
7.2.190.0110.00715.04
7.2.180.0060.00615.27
7.2.170.0090.00615.25
7.2.160.0130.00015.06
7.2.150.0090.00616.89
7.2.140.0030.01216.76
7.2.130.0040.01116.59
7.2.120.0040.01116.95
7.2.110.0610.01015.54
7.2.100.0770.00615.67
7.2.90.0810.01215.68
7.2.80.0530.01115.73
7.2.70.0100.00915.79
7.2.60.0550.01016.04
7.2.50.0050.01315.96
7.2.40.0840.01015.84
7.2.30.0080.01215.92
7.2.20.0120.00715.65
7.2.10.0870.00515.75
7.2.00.0220.00915.79
7.1.330.0100.00715.98
7.1.320.0030.01215.85
7.1.310.0110.00315.75
7.1.300.0030.00715.75
7.1.290.0040.01115.76
7.1.280.0140.00015.56
7.1.270.0070.00715.83
7.1.260.0060.00615.83
7.1.250.0030.01315.97
7.1.240.0110.00415.68
7.1.230.0560.01214.76
7.1.220.0700.00714.76
7.1.210.0810.01114.96
7.1.200.0790.00814.69
7.1.190.0060.01214.77
7.1.180.0090.00414.80
7.1.170.0600.00814.59
7.1.160.0190.01014.70
7.1.150.0090.00514.57
7.1.140.0270.01014.84
7.1.130.0290.01014.93
7.1.120.0720.00914.87
7.1.110.0250.00714.73
7.1.100.0650.01414.65
7.1.90.0080.01014.77
7.1.80.0090.00814.77
7.1.70.0450.00714.76
7.1.60.0750.01623.83
7.1.50.0200.01223.89
7.1.40.1210.00923.90
7.1.30.0860.00923.66
7.1.20.0180.01123.81
7.1.10.0440.01114.67
7.1.00.0100.00214.77
7.0.330.0080.00415.08
7.0.320.0060.00615.27
7.0.310.0060.01015.30
7.0.300.0140.00315.30
7.0.290.0030.01615.40
7.0.280.0060.00615.34
7.0.270.0030.01015.17
7.0.260.0030.00915.36
7.0.250.0040.00415.48
7.0.240.0090.00315.48
7.0.230.0040.00815.29
7.0.220.0060.00615.27
7.0.210.0040.00415.46
7.0.200.0090.00615.47
7.0.190.0060.00915.55
7.0.180.0080.00415.36
7.0.170.0000.01115.27
7.0.160.0030.01015.24
7.0.150.0030.01415.41
7.0.140.0100.00315.14
7.0.130.0100.00315.45
7.0.120.0040.00415.42
7.0.110.0000.01415.36
7.0.100.0070.00715.55
7.0.90.0090.00915.03
7.0.80.0000.01115.45
7.0.70.0030.00515.33
7.0.60.0060.00615.43
7.0.50.0090.00015.67
7.0.40.0120.00313.43
7.0.30.0030.00713.49
7.0.20.0080.00613.53
7.0.10.0100.00613.29
7.0.00.0030.00713.38
5.6.400.0060.00614.34
5.6.390.0030.00714.25
5.6.380.0070.00814.15
5.6.370.0060.01314.23
5.6.360.0090.00614.36
5.6.350.0000.01614.49
5.6.340.0000.01414.13
5.6.330.0000.01914.20
5.6.320.0040.01114.41
5.6.310.0030.01014.19
5.6.300.0090.00614.34
5.6.290.0100.00314.55
5.6.280.0000.00914.39
5.6.270.0000.00914.65
5.6.260.0080.00814.36
5.6.250.0070.00714.44
5.6.240.0040.00714.29
5.6.230.0060.00514.49
5.6.220.0080.00414.72
5.6.210.0060.00314.39
5.6.200.0030.00714.28
5.6.190.0060.00614.39
5.6.180.0060.00914.38
5.6.170.0060.00914.48
5.6.160.0030.01314.18
5.6.150.0040.01214.67
5.6.140.0040.01114.67
5.6.130.0110.00314.48
5.6.120.0040.01114.23
5.6.110.0030.01014.10
5.6.100.0040.01114.30
5.6.90.0000.01414.18
5.6.80.0060.00614.18
5.6.70.0040.00914.16
5.6.60.0000.01514.21
5.6.50.0000.01514.29
5.6.40.0060.00914.31
5.6.30.0090.00614.20
5.6.20.0100.00714.09
5.6.10.0090.00014.33
5.6.00.0060.00314.13

preferences:
52.7 ms | 401 KiB | 5 Q