3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { private $a; private $b; public function __construct() { echo 'DA'; } public function getA() {return $this->a;} public function getB() {return $this->b;} public function setA($a) {$this->a = $a;} public function setB($b) {$this->b = $b;} } $class = new ReflectionClass('Foo'); $instance = $class->newInstanceWithoutConstructor(); var_dump($instance);

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.70.0000.01616.38
8.3.60.0110.00718.30
8.3.50.0090.01321.92
8.3.40.0070.01118.50
8.3.30.0090.00618.38
8.3.20.0000.00720.34
8.3.10.0040.00420.44
8.3.00.0040.00421.75
8.2.180.0070.00716.75
8.2.170.0100.01022.96
8.2.160.0110.00422.18
8.2.150.0060.00324.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0000.00821.11
8.2.110.0070.00319.19
8.2.100.0100.00317.65
8.2.90.0030.00519.05
8.2.80.0040.00417.97
8.2.70.0030.00617.63
8.2.60.0000.00817.79
8.2.50.0030.00518.09
8.2.40.0040.00420.59
8.2.30.0040.00419.42
8.2.20.0030.00617.51
8.2.10.0020.00517.99
8.2.00.0040.00417.93
8.1.280.0170.00325.92
8.1.270.0070.01122.13
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00322.40
8.1.230.0040.00717.83
8.1.220.0050.00317.74
8.1.210.0050.00318.77
8.1.200.0060.00317.35
8.1.190.0050.00317.23
8.1.180.0040.00418.10
8.1.170.0000.00818.65
8.1.160.0040.00420.70
8.1.150.0000.00718.80
8.1.140.0000.00819.51
8.1.130.0110.00017.64
8.1.120.0050.00217.40
8.1.110.0000.00817.26
8.1.100.0040.00417.33
8.1.90.0040.00417.41
8.1.80.0000.00817.32
8.1.70.0000.00717.42
8.1.60.0040.00417.39
8.1.50.0040.00417.39
8.1.40.0060.00317.46
8.1.30.0000.00817.53
8.1.20.0080.00017.33
8.1.10.0030.00517.52
8.1.00.0000.00817.44
8.0.300.0000.00718.77
8.0.290.0080.00016.58
8.0.280.0030.00318.30
8.0.270.0030.00317.24
8.0.260.0030.00317.25
8.0.250.0070.00016.79
8.0.240.0030.00316.88
8.0.230.0000.00816.86
8.0.220.0030.00316.70
8.0.210.0030.00316.78
8.0.200.0000.00716.92
8.0.190.0070.00016.80
8.0.180.0080.00016.85
8.0.170.0040.00416.76
8.0.160.0000.00716.74
8.0.150.0040.00416.82
8.0.140.0070.00016.70
8.0.130.0050.00013.18
8.0.120.0040.00416.70
8.0.110.0000.00816.90
8.0.100.0040.00416.86
8.0.90.0080.00016.73
8.0.80.0110.00416.87
8.0.70.0000.00716.75
8.0.60.0050.00316.79
8.0.50.0040.00416.82
8.0.30.0120.00316.85
8.0.20.0130.01117.40
8.0.10.0040.00416.98
8.0.00.0060.01316.69
7.4.330.0050.00016.74
7.4.320.0030.00316.43
7.4.300.0060.00016.57
7.4.290.0000.00716.54
7.4.280.0060.00316.45
7.4.270.0030.00316.37
7.4.260.0040.00416.29
7.4.250.0040.00416.39
7.4.240.0000.00816.45
7.4.230.0030.00316.37
7.4.220.0070.01016.49
7.4.210.0140.00016.40
7.4.200.0000.00716.48
7.4.160.0050.01116.59
7.4.150.0110.00717.40
7.4.140.0150.00517.86
7.4.130.0110.00616.43
7.4.120.0070.01216.45
7.4.110.0140.00316.60
7.4.100.0090.00916.29
7.4.90.0030.01716.44
7.4.80.0030.01619.39
7.4.70.0030.01216.53
7.4.60.0100.00716.40
7.4.50.0090.00616.34
7.4.40.0050.01116.45
7.4.30.0080.01116.44
7.4.00.0040.01214.73
7.3.330.0020.00212.96
7.3.320.0000.00513.17
7.3.310.0040.00416.16
7.3.300.0000.00716.18
7.3.290.0090.00716.21
7.3.280.0060.01116.14
7.3.270.0120.00617.40
7.3.260.0090.00916.43
7.3.250.0110.00616.26
7.3.240.0070.00916.28
7.3.230.0070.01116.39
7.3.210.0030.01916.40
7.3.200.0130.00316.61
7.3.190.0130.00316.59
7.3.180.0060.01016.21
7.3.170.0140.00316.29
7.3.160.0100.00716.32
7.2.330.0190.00616.61
7.2.320.0070.01016.29
7.2.310.0100.00616.68
7.2.300.0060.01116.35
7.2.290.0070.01016.41
7.2.00.0100.00319.21
7.1.100.0070.00418.07
7.1.70.0040.01217.12
7.1.60.0100.01319.19
7.1.50.0090.00916.88
7.1.00.0030.07722.48
7.0.200.0320.00714.55
7.0.60.0170.07321.73
7.0.50.0100.07717.87
7.0.40.0200.06020.11
7.0.30.0230.08020.06
7.0.20.0370.06720.33
7.0.10.0100.07720.33
7.0.00.0030.04320.14
5.6.280.0030.07320.87
5.6.210.0070.05020.75
5.6.200.0170.07718.20
5.6.190.0100.03720.63
5.6.180.0370.04720.39
5.6.170.0170.04320.54
5.6.160.0030.06020.61
5.6.150.0100.07318.27
5.6.140.0070.05018.28
5.6.130.0030.05318.14
5.6.120.0100.07021.02
5.6.110.0200.07020.97
5.6.100.0170.08021.02
5.6.90.0070.08321.08
5.6.80.0030.06320.26
5.5.350.0170.05020.33
5.5.340.0100.07718.03
5.5.330.0100.04720.30
5.5.320.0200.07320.35
5.5.310.0370.06720.41
5.5.300.0000.04318.05
5.5.290.0030.08317.95
5.5.280.0100.05020.88
5.5.270.0070.07320.80
5.5.260.0030.07320.96
5.5.250.0170.07720.55
5.5.240.0000.08320.16

preferences:
50.19 ms | 401 KiB | 5 Q