3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { public $publicProperty; protected $protectedProperty; private $privateProperty; public function __construct() { unset( $this->publicProperty, $this->protectedProperty, $this->privateProperty ); } function __get($name) { echo '__get ' . $name . "\n"; return $this->$name; } function __set($name, $value) { echo '__set ' . $name . "\n"; $this->$name = $value; } function __isset($name) { echo '__isset ' . $name . "\n"; return isset($this->$name); } } $test = new Test(); $test->nonExisting; $test->publicProperty; $test->protectedProperty; $test->privateProperty; isset($test->nonExisting); isset($test->publicProperty); isset($test->protectedProperty); isset($test->privateProperty); $test->nonExisting = 'value'; $test->publicProperty = 'value'; $test->protectedProperty = 'value'; $test->privateProperty = 'value'; ?> --EXPECTF-- __get nonExisting Notice: Undefined index: nonExisting in %__set__get_006.php on line %d __get publicProperty Notice: Undefined index: publicProperty in %__set__get_006.php on line %d __get protectedProperty Notice: Undefined index: protectedProperty in %__set__get_006.php on line %d __get privateProperty Notice: Undefined index: protectedProperty in %__set__get_006.php on line %d __isset nonExisting __isset publicProperty __isset protectedProperty __isset privateProperty __set nonExisting __set publicProperty __set protectedProperty __set privateProperty

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.00318.56
8.3.50.0130.00621.98
8.3.40.0070.00718.84
8.3.30.0040.01119.13
8.3.20.0040.00420.39
8.3.10.0040.00421.92
8.3.00.0080.00022.52
8.2.180.0090.00616.50
8.2.170.0120.00322.96
8.2.160.0080.00620.77
8.2.150.0060.00324.18
8.2.140.0030.00524.66
8.2.130.0040.00426.16
8.2.120.0000.00819.61
8.2.110.0100.01021.04
8.2.100.0070.00317.91
8.2.90.0050.00319.05
8.2.80.0000.00817.97
8.2.70.0120.00017.38
8.2.60.0090.00017.80
8.2.50.0030.00518.07
8.2.40.0080.00018.16
8.2.30.0040.00418.05
8.2.20.0040.00417.54
8.2.10.0080.00019.48
8.2.00.0020.00517.54
8.1.280.0070.01125.92
8.1.270.0000.00823.96
8.1.260.0040.00426.35
8.1.250.0100.01028.09
8.1.240.0030.00623.78
8.1.230.0060.00622.73
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0060.00317.38
8.1.190.0000.00817.52
8.1.180.0050.00318.10
8.1.170.0000.00918.66
8.1.160.0040.00422.08
8.1.150.0000.00818.57
8.1.140.0000.00717.39
8.1.130.0030.00317.83
8.1.120.0000.00817.38
8.1.110.0000.00717.38
8.1.100.0000.00717.52
8.1.90.0000.00717.52
8.1.80.0000.00717.36
8.1.70.0030.00317.42
8.1.60.0040.00417.58
8.1.50.0030.00517.44
8.1.40.0040.00417.42
8.1.30.0030.00517.52
8.1.20.0000.00817.67
8.1.10.0060.00317.61
8.1.00.0070.00017.49
8.0.300.0000.00718.77
8.0.290.0040.00417.30
8.0.280.0070.00018.37
8.0.270.0000.00717.17
8.0.260.0030.00316.89
8.0.250.0050.00217.09
8.0.240.0050.00217.00
8.0.230.0000.00717.01
8.0.220.0000.00716.97
8.0.210.0030.00316.86
8.0.200.0000.00716.97
8.0.190.0040.00417.00
8.0.180.0070.00017.05
8.0.170.0040.00416.96
8.0.160.0030.00616.97
8.0.150.0030.00316.89
8.0.140.0070.00016.87
8.0.130.0030.00313.43
8.0.120.0030.00616.85
8.0.110.0040.00416.89
8.0.100.0000.00716.76
8.0.90.0040.00416.76
8.0.80.0060.00917.00
8.0.70.0000.00716.99
8.0.60.0000.00717.00
8.0.50.0000.00816.82
8.0.30.0150.00517.11
8.0.20.0120.00817.40
8.0.10.0000.00717.07
8.0.00.0180.00616.96
7.4.330.0050.00015.02
7.4.320.0070.00016.51
7.4.300.0030.00316.36
7.4.290.0030.00316.52
7.4.280.0000.00816.64
7.4.270.0030.00616.48
7.4.260.0030.00316.43
7.4.250.0000.00716.38
7.4.240.0030.00316.64
7.4.230.0030.00316.39
7.4.220.0150.00716.43
7.4.210.0070.00916.61
7.4.200.0070.00016.61
7.4.190.0000.00716.69
7.4.160.0090.00616.49
7.4.150.0110.00817.40
7.4.140.0130.00717.86
7.4.130.0070.01016.52
7.4.120.0130.00816.49
7.4.110.0070.01116.58
7.4.100.0110.00716.49
7.4.90.0090.00916.41
7.4.80.0120.01216.38
7.4.70.0070.01016.37
7.4.60.0080.00816.59
7.4.50.0030.00316.42
7.4.40.0070.01122.77
7.4.30.0110.01116.64
7.4.00.0070.01014.89
7.3.330.0050.00013.25
7.3.320.0030.00313.41
7.3.310.0000.00816.45
7.3.300.0060.00016.41
7.3.290.0090.00516.42
7.3.280.0090.00816.43
7.3.270.0110.00717.40
7.3.260.0060.01316.51
7.3.250.0130.00516.43
7.3.240.0090.01216.63
7.3.230.0110.00616.43
7.3.210.0060.01316.34
7.3.200.0070.01419.39
7.3.190.0110.00816.42
7.3.180.0110.00616.67
7.3.170.0030.01316.45
7.3.160.0030.01316.51
7.3.120.0030.01014.66
7.2.330.0060.01216.84
7.2.320.0090.00916.55
7.2.310.0070.01016.81
7.2.300.0090.00916.61
7.2.290.0110.00716.75
7.2.00.0000.01919.33
7.1.200.0000.00915.99
7.1.100.0040.00718.23
7.1.70.0020.00517.11
7.1.60.0040.01119.82
7.1.50.0070.01616.72
7.1.00.0030.07722.38
7.0.200.0070.00716.95
7.0.140.0030.07322.18
7.0.110.0030.04319.95
7.0.100.0070.07320.04
7.0.90.0070.04319.91
7.0.80.0030.03719.93
7.0.70.0030.03720.02
7.0.60.0070.03720.04
7.0.50.0000.04319.88
7.0.40.0100.05319.66
7.0.30.0070.03319.70
7.0.20.0030.04319.64
7.0.10.0030.03719.86
7.0.00.0030.04319.86
5.6.280.0070.07021.11
5.6.260.0030.03320.64
5.6.250.0000.04020.70
5.6.240.0070.03720.68
5.6.230.0100.03720.57
5.6.220.0070.04020.69
5.6.210.0070.04320.68
5.6.200.0030.04320.56
5.6.190.0200.05320.56
5.6.180.0030.04720.63
5.6.170.0000.07720.69
5.6.160.0000.04320.56
5.6.150.0000.03720.62
5.6.140.0070.04720.63
5.6.130.0030.06320.57
5.6.120.0030.04320.86
5.6.110.0030.04320.64
5.6.100.0100.07020.69
5.6.90.0130.06720.63
5.6.80.0000.05720.03
5.6.70.0000.04719.93
5.6.60.0100.03719.97
5.6.50.0100.06020.00
5.6.40.0170.06719.83
5.6.30.0000.04020.07
5.6.20.0070.03720.05
5.6.10.0070.04719.83
5.6.00.0100.03719.93
5.5.380.0030.05017.69
5.5.370.0000.05317.70
5.5.360.0000.04317.69
5.5.350.0030.04017.55
5.5.340.0030.04018.25
5.5.330.0070.06717.83
5.5.320.0030.04017.83
5.5.310.0070.03718.09
5.5.300.0030.05318.10
5.5.290.0070.03718.09
5.5.280.0000.04318.05
5.5.270.0030.07717.90
5.5.260.0030.04318.09
5.5.250.0070.05717.64
5.5.240.0030.07017.31
5.5.230.0000.04017.52
5.5.220.0070.03317.50
5.5.210.0130.02717.31
5.5.200.0030.04317.31
5.5.190.0200.02317.28
5.5.180.0030.04017.26
5.5.160.0070.03317.45
5.5.150.0000.03717.47
5.5.140.0100.03317.42
5.5.130.0000.03717.44
5.5.120.0030.03317.43
5.5.110.0030.03717.25
5.5.100.0130.07017.33
5.5.90.0030.03717.34
5.5.80.0030.03717.35
5.5.70.0000.04317.46
5.5.60.0070.03717.34
5.5.50.0000.04317.33
5.5.40.0070.03317.34
5.5.30.0100.02717.36
5.5.20.0100.02717.34
5.5.10.0000.04017.31
5.5.00.0000.04017.32
5.4.450.0100.03319.32
5.4.440.0030.04319.57
5.4.430.0030.04019.48
5.4.420.0070.03319.27
5.4.410.0030.03719.43
5.4.400.0000.04019.25
5.4.390.0070.03719.02
5.4.380.0100.03019.34
5.4.370.0030.04018.99
5.4.360.0100.03319.24
5.4.350.0070.03319.04
5.4.340.0070.03718.99
5.4.320.0100.03319.18
5.4.310.0070.03019.04
5.4.300.0030.03319.02
5.4.290.0070.03318.95
5.4.280.0070.07319.23
5.4.270.0130.03719.21
5.4.260.0000.03319.31
5.4.250.0030.03319.17
5.4.240.0030.03718.95
5.4.230.0030.06319.00
5.4.220.0030.03319.00
5.4.210.0100.04019.13
5.4.200.0030.03719.24
5.4.190.0030.03019.15
5.4.180.0070.03319.34
5.4.170.0030.03319.16
5.4.160.0070.03018.93
5.4.150.0030.03318.93
5.4.140.0030.03016.50
5.4.130.0000.03716.44
5.4.120.0070.02716.41
5.4.110.0070.02716.57
5.4.100.0000.03316.59
5.4.90.0070.02716.47
5.4.80.0070.02716.45
5.4.70.0030.03316.50
5.4.60.0070.03016.34
5.4.50.0000.03716.29
5.4.40.0070.02716.28
5.4.30.0100.03316.52
5.4.20.0070.02716.48
5.4.10.0030.03016.38
5.4.00.0030.03315.88
5.3.290.0000.04314.70
5.3.280.0030.05314.63
5.3.270.0070.03314.75
5.3.260.0070.03314.63
5.3.250.0030.03014.62
5.3.240.0070.02714.63
5.3.230.0030.03314.63
5.3.220.0070.02714.59
5.3.210.0030.04014.66
5.3.200.0070.02714.43
5.3.190.0000.03314.58
5.3.180.0100.02714.80
5.3.170.0030.03714.57
5.3.160.0070.02714.57
5.3.150.0000.03314.81
5.3.140.0130.02314.57
5.3.130.0000.03314.53
5.3.120.0070.03014.52
5.3.110.0070.03014.59
5.3.100.0030.03314.04
5.3.90.0000.03314.01
5.3.80.0000.03314.03
5.3.70.0030.03013.89
5.3.60.0000.03314.02
5.3.50.0000.03313.97
5.3.40.0030.03313.81
5.3.30.0030.03014.00
5.3.20.0200.02313.68
5.3.10.0030.03313.69
5.3.00.0030.03013.64
5.2.170.0030.02312.11
5.2.160.0070.02312.11
5.2.150.0070.02312.11
5.2.140.0070.02012.11
5.2.130.0030.03012.11
5.2.120.0030.02712.11
5.2.110.0000.02712.11
5.2.100.0030.02712.11
5.2.90.0000.03012.11
5.2.80.0070.02012.11
5.2.70.0070.02712.11
5.2.60.0000.02712.11
5.2.50.0000.02712.11
5.2.40.0070.02012.11
5.2.30.0070.02012.11
5.2.20.0030.02312.11
5.2.10.0000.02712.11
5.2.00.0030.02712.11
5.1.60.0030.02312.11
5.1.50.0000.03312.11
5.1.40.0000.02012.11
5.1.30.0000.03312.11
5.1.20.0000.02312.11
5.1.10.0000.02312.11
5.1.00.0070.01712.11
5.0.50.0000.02712.11
5.0.40.0000.02712.11
5.0.30.0000.03012.11
5.0.20.0030.01312.11
5.0.10.0000.01712.11
5.0.00.0000.02712.11
4.4.90.0000.01312.11
4.4.80.0000.01312.11
4.4.70.0000.01312.11
4.4.60.0000.01312.11
4.4.50.0000.01312.11
4.4.40.0030.02712.11
4.4.30.0000.01312.11
4.4.20.0030.01012.11
4.4.10.0070.01012.11
4.4.00.0000.02712.11
4.3.110.0000.03012.11
4.3.100.0000.01712.11
4.3.90.0000.02312.11
4.3.80.0000.02312.11
4.3.70.0000.01312.11
4.3.60.0030.01312.11
4.3.50.0000.01312.11
4.3.40.0000.03012.11
4.3.30.0030.01312.11
4.3.20.0000.01712.11
4.3.10.0000.01712.11
4.3.00.0000.01312.11

preferences:
42.85 ms | 400 KiB | 5 Q