3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function __construct() { echo '__construct'; } public function __call($name, $arguments) { echo $name . ' ' . implode(', ', $arguments); } public static function __callStatic($name, $arguments) { echo '(static) ' . $name . ' ' . implode(', ', $arguments); } public function __get($name) { echo '__get '; return $this->$name; } public function __set($name, $value) { echo '__set '; $this->$name = $value; } public function __isset($name) { echo "Est-ce que '$name' est défini ?\n"; return isset($this->$name); } public function __unset($name) { echo "Effacement de '$name'\n"; //unset($this->$name); } public function __destruct() { echo '__destruct'; } } $foo = new Foo(); // __construct /* $foo->undefinedMethod('arg1', 'arg2'); // undefinedMethod arg1, arg2 $foo::undefinedMethod('arg1'); // (static) undefinedMethod arg1 echo $foo->name; // __get Foo var_dump(isset($foo->name)); // bool(true)*/ $foo->name = 'Foo'; // __set unset($foo->name); var_dump(isset($foo->name)); // bool(true) //unset($foo); // __destruct ?>

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.0120.00618.52
8.3.50.0100.01018.18
8.3.40.0150.00018.97
8.3.30.0110.00419.17
8.3.20.0070.00020.32
8.3.10.0040.00421.95
8.3.00.0080.00019.20
8.2.180.0090.00618.18
8.2.170.0110.00422.96
8.2.160.0070.00722.25
8.2.150.0060.00324.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0030.00717.68
8.2.110.0060.00322.32
8.2.100.0120.00017.78
8.2.90.0040.00418.99
8.2.80.0050.00318.02
8.2.70.0030.00717.75
8.2.60.0040.00419.65
8.2.50.0000.00918.10
8.2.40.0020.00520.63
8.2.30.0050.00217.95
8.2.20.0030.00517.82
8.2.10.0050.00318.15
8.2.00.0040.00417.63
8.1.280.0100.01025.92
8.1.270.0040.00418.90
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0000.00920.40
8.1.230.0070.00420.32
8.1.220.0080.00017.74
8.1.210.0050.00318.77
8.1.200.0070.00317.22
8.1.190.0060.00317.35
8.1.180.0050.00318.10
8.1.170.0080.00018.46
8.1.160.0040.00422.20
8.1.150.0000.00818.70
8.1.140.0030.00517.47
8.1.130.0000.00717.85
8.1.120.0040.00417.52
8.1.110.0030.00717.43
8.1.100.0050.00317.47
8.1.90.0000.00717.46
8.1.80.0040.00417.49
8.1.70.0040.00417.50
8.1.60.0080.00017.63
8.1.50.0040.00717.57
8.1.40.0000.00817.55
8.1.30.0040.00417.53
8.1.20.0080.00017.60
8.1.10.0080.00017.61
8.1.00.0050.00217.48
8.0.300.0000.00718.77
8.0.290.0020.00516.63
8.0.280.0000.00718.43
8.0.270.0040.00417.25
8.0.260.0030.00317.33
8.0.250.0000.00716.84
8.0.240.0000.00716.88
8.0.230.0000.00716.88
8.0.220.0040.00416.93
8.0.210.0020.00516.88
8.0.200.0000.00717.02
8.0.190.0000.00816.88
8.0.180.0000.00716.98
8.0.170.0040.00417.00
8.0.160.0040.00416.97
8.0.150.0070.00016.74
8.0.140.0030.00416.75
8.0.130.0000.00713.41
8.0.120.0000.00816.74
8.0.110.0040.00416.96
8.0.100.0080.00016.78
8.0.90.0000.00816.91
8.0.80.0070.01116.93
8.0.70.0040.00416.88
8.0.60.0040.00416.95
8.0.50.0000.00716.79
8.0.30.0180.01116.91
8.0.20.0110.00817.40
8.0.10.0040.00416.87
8.0.00.0110.00816.92
7.4.330.0000.00515.03
7.4.320.0030.00316.57
7.4.300.0000.00616.62
7.4.290.0070.00016.69
7.4.280.0070.00016.65
7.4.270.0070.00016.46
7.4.260.0000.00716.48
7.4.250.0030.00516.56
7.4.240.0040.00416.60
7.4.230.0070.00016.44
7.4.220.0100.01616.60
7.4.210.0070.00716.57
7.4.200.0000.00716.35
7.4.160.0030.01416.73
7.4.150.0070.01017.40
7.4.140.0080.01017.86
7.4.130.0060.01016.51
7.4.120.0100.00816.60
7.4.110.0120.00616.40
7.4.100.0060.01616.58
7.4.90.0080.00816.43
7.4.80.0100.01319.39
7.4.70.0120.00816.50
7.4.60.0070.01016.50
7.4.50.0030.00616.47
7.4.40.0090.00916.69
7.4.30.0180.00016.59
7.4.10.0110.00715.22
7.4.00.0080.01115.11
7.3.330.0030.00313.38
7.3.320.0030.00313.21
7.3.310.0000.00716.41
7.3.300.0000.00716.33
7.3.290.0080.00716.34
7.3.280.0150.00516.34
7.3.270.0050.01417.40
7.3.260.0070.01016.61
7.3.250.0090.00916.41
7.3.240.0150.00616.38
7.3.230.0090.00616.64
7.3.210.0100.00716.31
7.3.200.0070.01019.39
7.3.190.0110.00516.57
7.3.180.0040.01116.44
7.3.170.0060.01216.36
7.3.160.0070.01016.36
7.3.130.0130.00714.61
7.3.120.0060.01214.87
7.3.110.0090.00914.63
7.3.100.0000.01214.91
7.3.90.0130.00315.04
7.3.80.0040.01115.03
7.3.70.0070.00714.83
7.3.60.0070.01014.97
7.3.50.0000.01514.88
7.3.40.0040.00714.47
7.3.30.0040.01114.91
7.3.20.0070.00716.89
7.3.10.0090.00616.70
7.3.00.0090.00016.52
7.2.330.0150.00616.63
7.2.320.0130.00916.44
7.2.310.0170.00016.54
7.2.300.0130.00316.76
7.2.290.0070.01016.51
7.2.260.0070.01114.72
7.2.250.0030.01615.14
7.2.240.0080.00814.89
7.2.230.0070.00714.98
7.2.220.0070.01014.84
7.2.210.0080.00814.72
7.2.200.0030.00714.98
7.2.190.0060.00914.71
7.2.180.0100.00314.97
7.2.170.0030.00615.03
7.2.160.0070.01015.09
7.2.150.0160.00016.84
7.2.140.0100.00316.86
7.2.130.0080.00816.86
7.2.120.0030.00617.05
7.2.110.0030.01116.95
7.2.100.0090.00616.66
7.2.90.0040.01217.05
7.2.80.0070.00716.81
7.2.70.0130.00316.95
7.2.60.0030.01316.84
7.2.50.0000.01316.98
7.2.40.0090.00617.02
7.2.30.0030.00716.95
7.2.20.0060.00916.96
7.2.10.0060.01217.02
7.2.00.0080.01018.25
7.1.330.0030.01015.68
7.1.320.0030.00615.91
7.1.310.0080.00815.98
7.1.300.0100.00315.87
7.1.290.0040.00715.30
7.1.280.0030.01315.65
7.1.270.0070.00315.76
7.1.260.0070.00415.84
7.1.250.0030.00915.88
7.1.240.0070.00715.58
7.1.230.0090.00615.92
7.1.220.0090.00615.74
7.1.210.0030.00615.75
7.1.200.0000.00815.79
7.1.190.0040.01415.93
7.1.180.0040.01115.67
7.1.170.0100.00715.80
7.1.160.0080.00615.70
7.1.150.0060.00615.91
7.1.140.0040.01115.74
7.1.130.0070.01015.68
7.1.120.0140.00015.99
7.1.110.0100.00315.96
7.1.100.0030.01016.95
7.1.90.0000.01015.96
7.1.80.0050.00515.63
7.1.70.0060.00316.29
7.1.60.0100.00817.48
7.1.50.0020.01216.49
7.1.40.0110.00315.54
7.1.30.0030.00715.83
7.1.20.0140.00015.73
7.1.10.0040.01215.72
7.1.00.0040.04219.16
7.0.330.0060.00615.66
7.0.320.0030.00715.10
7.0.310.0090.00315.43
7.0.300.0030.00915.25
7.0.290.0060.01015.62
7.0.280.0090.00315.48
7.0.270.0070.00715.23
7.0.260.0030.01015.44
7.0.250.0040.00415.17
7.0.240.0040.01115.50
7.0.230.0040.00415.68
7.0.220.0080.00415.14
7.0.210.0030.01015.25
7.0.200.0030.01016.05
7.0.190.0060.00615.36
7.0.180.0060.00315.57
7.0.170.0000.01015.38
7.0.160.0090.00615.47
7.0.150.0040.01115.68
7.0.140.0020.02918.67
7.0.130.0040.01115.51
7.0.120.0090.00615.55
7.0.110.0000.01515.53
7.0.100.0160.03517.72
7.0.90.0120.04117.59
7.0.80.0120.03817.66
7.0.70.0100.04217.68
7.0.60.0070.04217.63
7.0.50.0220.04917.77
7.0.40.0120.04316.81
7.0.30.0070.04716.86
7.0.20.0020.05216.69
7.0.10.0100.03616.77
7.0.00.0030.05016.76
5.6.400.0060.00614.49
5.6.390.0040.00414.26
5.6.380.0070.00414.22
5.6.370.0040.01214.61
5.6.360.0070.00414.45
5.6.350.0170.00014.36
5.6.340.0040.00814.36
5.6.330.0110.00614.57
5.6.320.0000.01714.10
5.6.310.0030.01314.19
5.6.300.0070.00714.04
5.6.290.0070.00714.12
5.6.280.0080.03717.62
5.6.270.0060.00614.63
5.6.260.0030.01214.30
5.6.250.0120.04017.65
5.6.240.0000.05117.56
5.6.230.0000.04017.51
5.6.220.0070.03017.61
5.6.210.0040.03017.63
5.6.200.0030.04317.81
5.6.190.0120.03617.67
5.6.180.0090.02317.80
5.6.170.0020.03217.77
5.6.160.0080.03917.73
5.6.150.0020.04817.50
5.6.140.0080.04317.76
5.6.130.0120.04017.69
5.6.120.0060.03017.81
5.6.110.0100.03317.63
5.6.100.0050.04217.66
5.6.90.0100.03617.67
5.6.80.0150.03117.57
5.6.70.0060.04117.50
5.6.60.0050.04317.29
5.6.50.0090.04017.44
5.6.40.0110.03617.41
5.6.30.0060.04417.51
5.6.20.0040.04917.29
5.6.10.0120.04117.48
5.6.00.0030.04217.29
5.5.380.0050.04217.43
5.5.370.0050.02717.12
5.5.360.0110.03817.36
5.5.350.0090.04017.23
5.5.340.0080.03817.62
5.5.330.0080.04017.46
5.5.320.0030.02717.39
5.5.310.0100.04117.60
5.5.300.0070.03817.56
5.5.290.0070.04417.50
5.5.280.0120.04317.73
5.5.270.0050.03917.63
5.5.260.0070.04017.35
5.5.250.0080.04317.56
5.5.240.0050.04817.38
5.5.230.0080.04217.23
5.5.220.0110.02317.33
5.5.210.0080.04217.18
5.5.200.0040.04117.12
5.5.190.0080.04317.30
5.5.180.0040.04617.10
5.5.170.0070.01014.16
5.5.160.0050.04517.32
5.5.150.0070.03417.23
5.5.140.0030.03017.29
5.5.130.0020.04517.34
5.5.120.0050.03417.28
5.5.110.0020.03117.17
5.5.100.0070.04017.13
5.5.90.0000.04717.37
5.5.80.0080.03817.24
5.5.70.0070.03216.94
5.5.60.0100.04217.23
5.5.50.0050.03717.35
5.5.40.0100.04117.24
5.5.30.0100.04417.07
5.5.20.0040.04417.04
5.5.10.0090.03516.97
5.5.00.0020.02917.18
5.4.450.0060.04015.59
5.4.440.0100.04215.71
5.4.430.0120.02015.60
5.4.420.0080.03815.69
5.4.410.0050.04015.62
5.4.400.0050.03015.45
5.4.390.0070.04215.45
5.4.380.0040.03615.45
5.4.370.0070.04115.44
5.4.360.0130.03515.48
5.4.350.0120.03715.44
5.4.340.0090.04115.50
5.4.330.0030.00311.84
5.4.320.0100.03815.46
5.4.310.0080.03715.37
5.4.300.0020.04215.48
5.4.290.0120.03315.51
5.4.280.0080.04215.50
5.4.270.0100.02815.36
5.4.260.0020.04315.44
5.4.250.0040.04015.52
5.4.240.0030.02715.48
5.4.230.0080.03715.39
5.4.220.0070.02515.49
5.4.210.0080.03915.46
5.4.200.0030.04415.39
5.4.190.0090.03915.50
5.4.180.0070.04115.48
5.4.170.0050.04015.50
5.4.160.0000.03615.42
5.4.150.0050.02415.50
5.4.140.0060.03614.04
5.4.130.0090.03514.12
5.4.120.0100.03014.12
5.4.110.0070.02514.10
5.4.100.0040.02614.17
5.4.90.0080.03514.15
5.4.80.0000.02814.16
5.4.70.0020.03514.11
5.4.60.0100.02814.09
5.4.50.0030.04214.07
5.4.40.0140.03014.11
5.4.30.0020.04014.07
5.4.20.0060.03614.15
5.4.10.0000.02614.12
5.4.00.0050.02213.77
5.3.290.0030.06014.74
5.3.280.0100.06314.58
5.3.270.0070.07714.68
5.3.260.0070.07714.75
5.3.250.0130.07314.61
5.3.240.0070.07714.73
5.3.230.0030.07314.67
5.3.220.0100.06714.59
5.3.210.0070.07314.51
5.3.200.0130.07314.51
5.3.190.0130.05314.54
5.3.180.0100.06014.55
5.3.170.0100.06314.54
5.3.160.0070.07014.52
5.3.150.0130.06314.56
5.3.140.0070.07314.53
5.3.130.0030.07714.53
5.3.120.0070.07714.70
5.3.110.0170.04314.62
5.3.100.0100.06314.04
5.3.90.0100.06014.11
5.3.80.0070.07714.13
5.3.70.0000.04014.06
5.3.60.0070.05714.11
5.3.50.0030.08013.97
5.3.40.0070.03313.99
5.3.30.0130.06713.82
5.3.20.0100.07013.75
5.3.10.0130.06313.78
5.3.00.0100.06313.58
5.2.170.0000.05311.04
5.2.160.0030.03011.21
5.2.150.0030.06011.04
5.2.140.0000.06711.22
5.2.130.0000.05711.25
5.2.120.0100.05711.04
5.2.110.0030.06311.03
5.2.100.0000.04011.23
5.2.90.0030.06311.14
5.2.80.0100.05711.25
5.2.70.0070.06011.13
5.2.60.0030.06311.12
5.2.50.0030.06011.09
5.2.40.0030.04310.90
5.2.30.0030.05310.85
5.2.20.0030.06011.04
5.2.10.0100.05010.97
5.2.00.0030.06310.67
5.1.60.0130.04710.00
5.1.50.0000.0539.90
5.1.40.0030.05710.06
5.1.30.0030.06010.45
5.1.20.0070.05310.39
5.1.10.0030.0539.93
5.1.00.0100.04710.17
5.0.50.0070.0438.67
5.0.40.0000.0508.67
5.0.30.0000.0608.67
5.0.20.0000.0478.67
5.0.10.0000.0478.67
5.0.00.0070.0678.67
4.4.90.0100.0278.67
4.4.80.0000.0278.67
4.4.70.0000.0408.67
4.4.60.0000.0408.67
4.4.50.0000.0378.67
4.4.40.0070.0538.67
4.4.30.0000.0378.67
4.4.20.0030.0208.67
4.4.10.0000.0378.67
4.4.00.0000.0478.67
4.3.110.0000.0408.67
4.3.100.0030.0308.67
4.3.90.0000.0338.67
4.3.80.0070.0478.67
4.3.70.0000.0408.67
4.3.60.0070.0138.67
4.3.50.0070.0308.67
4.3.40.0070.0408.67
4.3.30.0000.0338.67
4.3.20.0070.0338.67
4.3.10.0000.0378.67
4.3.00.0030.0338.67

preferences:
51.69 ms | 400 KiB | 5 Q