3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { public $a; protected $have_been_set = array(); public function __set($name, $val) { $this->have_been_set[$name] = TRUE; $this->{$name} = $val; } public function __isset($name) { print "checking for $name\n"; return array_key_exists($name, $this->have_been_set); } } $t1 = new Test(); $t1->a = null; $t2 = new Test(); var_dump( isSet($t1->a), isSet($t2->a) );

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.0090.00916.50
8.3.50.0130.01022.05
8.3.40.0100.00318.70
8.3.30.0070.00718.70
8.3.20.0000.00820.34
8.3.10.0080.00023.47
8.3.00.0040.00419.38
8.2.180.0060.00916.38
8.2.170.0140.00722.96
8.2.160.0110.00720.39
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0030.00617.50
8.2.120.0000.00826.35
8.2.110.0000.00921.04
8.2.100.0060.00617.83
8.2.90.0000.00819.30
8.2.80.0090.00317.97
8.2.70.0030.00617.49
8.2.60.0040.00417.68
8.2.50.0000.00818.07
8.2.40.0040.00419.38
8.2.30.0040.00420.51
8.2.20.0050.00517.68
8.2.10.0000.00717.95
8.2.00.0000.00717.88
8.1.280.0160.01025.92
8.1.270.0090.00023.96
8.1.260.0000.00728.09
8.1.250.0070.00028.09
8.1.240.0080.00023.84
8.1.230.0070.00418.91
8.1.220.0080.00017.74
8.1.210.0080.00018.77
8.1.200.0000.00917.25
8.1.190.0040.00417.23
8.1.180.0080.00018.10
8.1.170.0000.00818.63
8.1.160.0000.00721.89
8.1.150.0000.00718.82
8.1.140.0080.00019.56
8.1.130.0030.00317.58
8.1.120.0000.00717.31
8.1.110.0000.00717.38
8.1.100.0030.00517.31
8.1.90.0000.00717.35
8.1.80.0070.00017.30
8.1.70.0030.00317.25
8.1.60.0000.01217.41
8.1.50.0060.00317.46
8.1.40.0040.00417.35
8.1.30.0050.00317.61
8.1.20.0030.00517.50
8.1.10.0040.00417.53
8.1.00.0040.00417.53
8.0.300.0070.00418.77
8.0.290.0040.00416.58
8.0.280.0070.00018.39
8.0.270.0040.00417.11
8.0.260.0000.00617.13
8.0.250.0000.00616.90
8.0.240.0000.00716.73
8.0.230.0040.00416.80
8.0.220.0000.01016.79
8.0.210.0040.00416.71
8.0.200.0000.00616.93
8.0.190.0070.00016.92
8.0.180.0040.00416.74
8.0.170.0030.00716.76
8.0.160.0040.00416.82
8.0.150.0040.00316.86
8.0.140.0050.00216.74
8.0.130.0000.00513.22
8.0.120.0000.00816.68
8.0.110.0040.00416.90
8.0.100.0070.00016.65
8.0.90.0030.00316.73
8.0.80.0060.01216.89
8.0.70.0040.00416.65
8.0.60.0050.00216.80
8.0.50.0000.00716.77
8.0.30.0090.01016.79
8.0.20.0090.01017.40
8.0.10.0100.00016.77
8.0.00.0060.01316.70
7.4.330.0000.00516.67
7.4.320.0030.00316.46
7.4.300.0060.00016.59
7.4.290.0070.00016.55
7.4.280.0080.00016.45
7.4.270.0040.00416.53
7.4.260.0000.00716.32
7.4.250.0020.00516.45
7.4.240.0030.00416.47
7.4.230.0000.00716.52
7.4.220.0140.00416.57
7.4.210.0000.01416.50
7.4.200.0030.00316.56
7.4.160.0080.00816.41
7.4.150.0070.01017.40
7.4.140.0130.00617.86
7.4.130.0100.01316.42
7.4.120.0110.00616.45
7.4.110.0100.00716.64
7.4.100.0120.00616.58
7.4.90.0060.01016.51
7.4.80.0030.01719.39
7.4.70.0100.01316.38
7.4.60.0120.00316.39
7.4.50.0030.01216.34
7.4.40.0130.00316.59
7.4.30.0110.00616.64
7.4.00.0090.00815.02
7.3.330.0060.00013.32
7.3.320.0030.00513.11
7.3.310.0000.00816.14
7.3.300.0030.00316.21
7.3.290.0080.00916.23
7.3.280.0110.00516.21
7.3.270.0100.00717.40
7.3.260.0060.01016.21
7.3.250.0090.00816.46
7.3.240.0100.00616.40
7.3.230.0120.00616.39
7.3.210.0090.01216.44
7.3.200.0060.01016.23
7.3.190.0160.00316.38
7.3.180.0120.00316.27
7.3.170.0120.00916.39
7.3.160.0060.00916.33
7.3.120.0090.00614.81
7.3.110.0040.01214.77
7.3.100.0060.00914.89
7.3.90.0080.00414.83
7.3.80.0150.00014.75
7.3.70.0040.00714.54
7.3.60.0100.00414.92
7.3.50.0090.00314.70
7.3.40.0030.01014.84
7.3.30.0030.01014.41
7.3.20.0040.01116.64
7.3.10.0070.00916.63
7.3.00.0110.00616.62
7.2.330.0110.00816.56
7.2.320.0160.00916.50
7.2.310.0080.00816.59
7.2.300.0060.01616.72
7.2.290.0160.00316.46
7.2.250.0040.01415.16
7.2.240.0070.01115.15
7.2.230.0090.00915.11
7.2.220.0070.01014.98
7.2.210.0070.00714.73
7.2.200.0060.00315.08
7.2.190.0100.00315.16
7.2.180.0090.00615.01
7.2.170.0100.00615.18
7.2.130.0030.01416.62
7.2.120.0060.00616.64
7.2.110.0120.00316.55
7.2.100.0040.01216.75
7.2.90.0090.00616.79
7.2.80.0050.00816.52
7.2.70.0090.00916.42
7.2.60.0050.00816.67
7.2.50.0090.00616.28
7.2.40.0060.00916.35
7.2.30.0000.01516.39
7.2.20.0040.01116.75
7.2.10.0120.00616.43
7.2.00.0110.00318.15
7.1.330.0070.00715.69
7.1.320.0120.00415.52
7.1.310.0030.01015.98
7.1.300.0040.00815.68
7.1.290.0080.00815.70
7.1.280.0070.00715.84
7.1.270.0070.01115.66
7.1.260.0070.00715.69
7.1.250.0160.00715.31
7.1.200.0130.00015.68
7.1.100.0100.00017.70
7.1.70.0030.00717.00
7.1.60.0070.01719.36
7.1.50.0040.00816.79
7.1.00.0070.06322.46
7.0.200.0020.00516.70
7.0.60.0070.07320.05
7.0.50.0100.08017.80
7.0.40.0100.05720.26
7.0.30.0600.05320.30
7.0.20.0130.04320.12
7.0.10.0000.08320.06
7.0.00.0070.09320.36
5.6.210.0170.07020.77
5.6.200.0100.04318.19
5.6.190.0130.08020.77
5.6.180.0470.03720.39
5.6.170.0330.07020.50
5.6.160.0070.08320.46
5.6.150.0070.06318.12
5.6.140.0000.08318.17
5.6.130.0070.03718.15
5.6.120.0070.06020.93
5.6.110.0130.07720.98
5.6.100.0100.08021.04
5.6.90.0000.08021.09
5.6.80.0070.03720.41
5.5.350.4200.04320.46
5.5.340.0070.03717.98
5.5.330.0030.07320.27
5.5.320.0100.07720.51
5.5.310.0200.08020.34
5.5.300.0100.07718.02
5.5.290.0100.05717.99
5.5.280.0030.06720.85
5.5.270.0100.03720.89
5.5.260.0100.05720.87
5.5.250.0000.04320.69
5.5.240.0230.05320.14

preferences:
42.92 ms | 401 KiB | 5 Q