3v4l.org

run code in 300+ PHP versions simultaneously
<?php class C { public $a; public $b; public function __construct($a, $b) { $this->a = $a; $this->b = $b; } public function doSomethingWithA() { /**/ } public function doSomethingWithB() { /**/ } } // test 1 $c = new C("foo", null); var_dump($c->a === "foo"); // test 2 $c = new C(null, "foo"); var_dump($c->b === "foo");

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.40.0170.00318.84
8.3.30.0070.00718.96
8.3.20.0040.00420.33
8.3.10.0050.00323.60
8.3.00.0080.00020.77
8.2.170.0200.00022.96
8.2.160.0070.00720.32
8.2.150.0080.00024.18
8.2.140.0000.00724.66
8.2.130.0040.01426.16
8.2.120.0040.00420.77
8.2.110.0040.00422.21
8.2.100.0040.00717.72
8.2.90.0090.00019.23
8.2.80.0030.00617.97
8.2.70.0100.00017.50
8.2.60.0040.00417.80
8.2.50.0000.00818.07
8.2.40.0050.00319.88
8.2.30.0090.00018.16
8.2.20.0000.00817.50
8.2.10.0000.00717.87
8.2.00.0040.00417.50
8.1.270.0080.00023.94
8.1.260.0040.00426.35
8.1.250.0050.00228.09
8.1.240.0060.00323.93
8.1.230.0070.00419.21
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0080.00317.23
8.1.190.0000.00817.35
8.1.180.0000.00718.10
8.1.170.0040.00418.37
8.1.160.0060.00322.00
8.1.150.0040.00418.61
8.1.140.0040.00417.31
8.1.130.0030.00317.82
8.1.120.0030.00417.36
8.1.110.0060.00317.38
8.1.100.0040.00417.36
8.1.90.0000.00717.36
8.1.80.0040.00417.41
8.1.70.0000.00717.28
8.1.60.0040.00417.59
8.1.50.0060.00317.52
8.1.40.0050.00317.57
8.1.30.0030.00617.63
8.1.20.0000.00817.66
8.1.10.0030.00617.57
8.1.00.0040.00417.53
8.0.300.0000.00718.77
8.0.290.0040.00416.75
8.0.280.0030.00318.29
8.0.270.0000.00717.26
8.0.260.0000.00717.17
8.0.250.0000.00716.83
8.0.240.0030.00316.91
8.0.230.0070.00016.93
8.0.220.0000.00616.71
8.0.210.0040.00416.86
8.0.200.0000.00716.73
8.0.190.0000.00716.88
8.0.180.0070.00016.92
8.0.170.0030.00516.71
8.0.160.0050.00316.89
8.0.150.0040.00416.87
8.0.140.0040.00416.84
8.0.130.0060.00013.28
8.0.120.0000.00716.82
8.0.110.0040.00416.81
8.0.100.0040.00416.72
8.0.90.0000.00716.95
8.0.80.0090.00916.79
8.0.70.0020.00516.71
8.0.60.0000.00716.62
8.0.50.0050.00316.72
8.0.30.0100.00717.26
8.0.20.0130.01817.40
8.0.10.0040.00416.85
8.0.00.0100.01016.88
7.4.330.0030.00315.09
7.4.320.0060.00016.55
7.4.300.0030.00316.61
7.4.290.0070.00016.50
7.4.280.0030.00616.53
7.4.270.0000.00716.43
7.4.260.0060.00316.61
7.4.250.0030.00416.46
7.4.240.0070.00016.62
7.4.230.0070.00016.40
7.4.220.0060.01116.65
7.4.210.0100.01016.67
7.4.200.0030.00316.58
7.4.160.0070.01016.42
7.4.150.0030.01417.40
7.4.140.0070.01117.86
7.4.130.0080.00916.45
7.4.120.0090.00916.48
7.4.110.0040.01416.55
7.4.100.0130.00516.56
7.4.90.0100.00716.34
7.4.80.0120.00819.39
7.4.70.0130.00316.53
7.4.60.0100.00616.54
7.4.50.0000.01016.30
7.4.40.0080.00816.45
7.4.30.0030.01216.56
7.4.00.0060.00915.00
7.3.330.0050.00013.25
7.3.320.0050.00013.16
7.3.310.0060.00316.40
7.3.300.0070.00016.37
7.3.290.0080.01116.30
7.3.280.0080.01016.28
7.3.270.0060.01317.40
7.3.260.0120.00416.30
7.3.250.0140.00716.41
7.3.240.0120.00616.34
7.3.230.0080.00816.39
7.3.210.0160.00016.24
7.3.200.0040.01219.39
7.3.190.0100.01016.28
7.3.180.0080.00816.36
7.3.170.0140.00716.38
7.3.160.0160.00016.28
7.3.120.0030.01314.85
7.3.00.0030.01316.48
7.2.330.0030.01416.57
7.2.320.0220.00816.61
7.2.310.0060.01016.71
7.2.300.0110.00716.58
7.2.290.0130.00816.69
7.2.130.0100.00316.54
7.2.120.0080.00316.78
7.2.110.0060.00916.75
7.2.100.0090.00616.96
7.2.90.0110.00416.55
7.2.80.0030.01016.70
7.2.70.0100.00316.72
7.2.60.0090.00616.63
7.2.50.0030.01016.91
7.2.40.0030.00716.71
7.2.30.0060.00616.58
7.2.20.0070.01016.80
7.2.10.0040.00816.66
7.2.00.0030.01318.13
7.1.250.0100.00315.77
7.1.240.0040.01115.89
7.1.230.0060.00615.48
7.1.220.0070.00715.80
7.1.210.0040.00415.70
7.1.200.0050.00815.68
7.1.190.0000.01115.93
7.1.180.0060.00315.87
7.1.170.0100.00315.87
7.1.160.0100.00315.77
7.1.150.0060.00915.59
7.1.140.0060.00615.75
7.1.130.0090.00315.77
7.1.120.0030.00715.88
7.1.110.0090.00315.50
7.1.100.0050.01016.91
7.1.90.0030.01315.49
7.1.80.0110.00415.75
7.1.70.0080.00516.53
7.1.60.0050.01016.65
7.1.50.0040.00816.32
7.1.40.0040.00916.20
7.1.30.0070.00516.16
7.1.20.0080.00516.24
7.1.10.0030.01016.14
7.1.00.0050.00616.28
7.0.330.0000.00715.50
7.0.320.0000.01415.54
7.0.310.0070.00715.50
7.0.300.0000.00915.46
7.0.290.0060.00315.34
7.0.280.0090.00315.21
7.0.270.0100.00315.27
7.0.260.0070.01015.18
7.0.250.0070.00315.29
7.0.240.0030.01315.59
7.0.230.0030.00615.18
7.0.220.0090.00615.28
7.0.210.0100.00315.21
7.0.200.0100.00315.97
7.0.190.0040.00716.14
7.0.180.0030.00716.07
7.0.170.0040.00516.02
7.0.160.0020.00815.98
7.0.150.0020.01416.02
7.0.140.0060.00615.81
7.0.130.0030.00815.98
7.0.120.0060.00615.89
7.0.110.0060.00616.01
7.0.100.0040.00516.03
7.0.90.0030.00815.93
7.0.80.0020.01215.97
7.0.70.0030.01016.02
7.0.60.0040.00716.04
7.0.50.0040.00816.03
7.0.40.0050.00314.99
7.0.30.0040.00615.06
7.0.20.0050.00514.89
7.0.10.0090.00015.07
7.0.00.0060.00514.96
5.6.380.0090.00314.52
5.6.370.0000.00914.39
5.6.360.0000.01514.32
5.6.350.0030.01014.60
5.6.340.0030.00714.41
5.6.330.0070.00714.44
5.6.320.0030.00914.31
5.6.310.0000.01414.47
5.6.300.0060.02917.57
5.6.290.0100.02317.44
5.6.280.0060.02317.80
5.6.270.0050.02517.52
5.6.260.0050.02517.62
5.6.250.0030.03017.62
5.6.240.0080.02617.65
5.6.230.0000.05117.67
5.6.220.0030.03117.54
5.6.210.0030.02817.41
5.6.200.0030.02917.62
5.6.190.0050.02617.63
5.6.180.0050.02717.54
5.6.170.0100.03417.58
5.6.160.0040.02417.51
5.6.150.0050.03117.75
5.6.140.0050.02517.64
5.6.130.0050.02217.64
5.6.120.0030.03017.52
5.6.110.0040.03917.71
5.6.100.0020.03417.49
5.6.90.0070.02617.54
5.6.80.0070.02017.15
5.6.70.0060.03117.20
5.6.60.0080.03017.25
5.6.50.0050.02317.35
5.6.40.0020.02517.28
5.6.30.0060.02317.31
5.6.20.0050.02217.45
5.6.10.0040.03817.24
5.6.00.0030.03017.26
5.5.380.0050.02114.53
5.5.370.0030.02514.61
5.5.360.0030.02514.58
5.5.350.0070.02414.54
5.5.340.0090.02314.85
5.5.330.0020.02714.85
5.5.320.0080.02214.67
5.5.310.0030.02614.85
5.5.300.0040.02714.80
5.5.290.0010.04114.85
5.5.280.0050.02314.82
5.5.270.0060.03314.84
5.5.260.0070.02414.67
5.5.250.0060.02414.76
5.5.240.0050.02314.52
5.5.230.0060.02714.49
5.5.220.0050.04114.51
5.5.210.0050.02114.53
5.5.200.0070.03914.33
5.5.190.0060.03714.52
5.5.180.0080.02014.51
5.5.170.0030.00611.60
5.5.160.0050.02614.49
5.5.150.0050.02914.51
5.5.140.0070.03214.48
5.5.130.0060.01914.49
5.5.120.0070.02114.33
5.5.110.0050.02514.54
5.5.100.0060.02314.49
5.5.90.0000.02514.28
5.5.80.0050.02114.46
5.5.70.0000.03314.47
5.5.60.0060.02114.47
5.5.50.0030.02014.42
5.5.40.0090.03414.44
5.5.30.0030.02414.27
5.5.20.0130.02014.45
5.5.10.0030.02314.47
5.5.00.0030.02514.34
5.4.450.0070.02015.47
5.4.440.0020.02415.53
5.4.430.0050.02415.56
5.4.420.0060.02215.56
5.4.410.0080.01915.44
5.4.400.0040.03115.33
5.4.390.0060.02415.41
5.4.380.0030.02515.32
5.4.370.0030.03015.39
5.4.360.0070.01915.34
5.4.350.0060.02315.29
5.4.340.0030.03415.42
5.4.330.0000.01111.60
5.4.320.0050.02115.37
5.4.310.0050.03115.28
5.4.300.0060.02315.26
5.4.290.0060.02215.34
5.4.280.0080.02015.40
5.4.270.0040.02115.29
5.4.260.0020.02515.27
5.4.250.0060.02215.31
5.4.240.0040.02415.39
5.4.230.0030.02715.32
5.4.220.0000.02615.25
5.4.210.0030.02515.27
5.4.200.0070.02915.29
5.4.190.0030.02215.31
5.4.180.0040.02515.29
5.4.170.0020.02615.32
5.4.160.0060.03915.28
5.4.150.0050.02115.41
5.4.140.0090.01814.14
5.4.130.0060.01914.18
5.4.120.0080.03714.13
5.4.110.0100.03314.17
5.4.100.0020.02814.19
5.4.90.0030.02114.08
5.4.80.0020.02814.11
5.4.70.0050.04214.10
5.4.60.0070.03714.08
5.4.50.0040.02614.10
5.4.40.0030.02514.08
5.4.30.0040.02014.13
5.4.20.0060.02114.13
5.4.10.0050.02214.10
5.4.00.0020.02114.08
5.3.290.0050.02714.08
5.3.280.0030.04114.08
5.3.270.0030.02514.08
5.3.260.0050.02314.08
5.3.250.0070.02114.08
5.3.240.0020.02314.08
5.3.230.0070.02214.08
5.3.220.0020.02614.08
5.3.210.0060.02314.08
5.3.200.0030.02214.08
5.3.190.0030.02414.08
5.3.180.0020.02114.08
5.3.170.0030.02414.08
5.3.160.0060.01914.08
5.3.150.0060.01914.08
5.3.140.0030.02014.08
5.3.130.0060.01914.08
5.3.120.0010.03314.08
5.3.110.0150.02414.08
5.3.100.0060.02014.08
5.3.90.0000.02514.08
5.3.80.0050.02114.08
5.3.70.0020.02314.08
5.3.60.0020.02514.08
5.3.50.0070.01914.08
5.3.40.0080.02114.08
5.3.30.0050.02214.08
5.3.20.0090.01714.08
5.3.10.0050.01814.08
5.3.00.0040.02214.08

preferences:
45.45 ms | 400 KiB | 5 Q