3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function __construct($a, $b) { var_dump($a, $b); } } class Bar { public function __construct($a) { var_dump($a); } } class Baz { public function __construct($a, $b) { Foo::__construct($a, $b); } } $baz = new Baz("foo", "bar");

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.00616.48
8.3.50.0030.01316.49
8.3.40.0180.00018.88
8.3.30.0110.00318.87
8.3.20.0070.00020.04
8.3.10.0080.00021.73
8.3.00.0050.00323.66
8.2.180.0090.00618.66
8.2.170.0080.00622.96
8.2.160.0110.00320.53
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0000.00819.57
8.2.120.0070.00026.35
8.2.110.0100.00022.26
8.2.100.0080.00417.90
8.2.90.0040.00419.27
8.2.80.0030.00618.04
8.2.70.0090.00017.50
8.2.60.0090.00018.04
8.2.50.0080.00018.07
8.2.40.0090.00022.38
8.2.30.0000.00820.50
8.2.20.0060.00317.67
8.2.10.0000.00817.87
8.2.00.0040.00417.93
8.1.280.0130.01025.92
8.1.270.0040.00423.96
8.1.260.0050.00328.09
8.1.250.0040.00428.09
8.1.240.0000.00922.19
8.1.230.0090.00319.10
8.1.220.0040.00417.74
8.1.210.0090.00018.77
8.1.200.0090.00017.35
8.1.190.0040.00417.11
8.1.180.0080.00018.10
8.1.170.0040.00418.59
8.1.160.0000.00720.51
8.1.150.0040.00418.64
8.1.140.0030.00519.36
8.1.130.0000.00717.55
8.1.120.0030.00317.19
8.1.110.0000.00817.34
8.1.100.0040.00417.25
8.1.90.0070.00017.23
8.1.80.0000.00717.21
8.1.70.0040.00417.40
8.1.60.0000.00817.55
8.1.50.0000.00817.30
8.1.40.0040.00417.45
8.1.30.0040.00417.60
8.1.20.0050.00317.61
8.1.10.0000.00717.52
8.1.00.0000.00917.45
8.0.300.0040.00418.77
8.0.290.0040.00416.59
8.0.280.0070.00018.29
8.0.270.0000.00817.19
8.0.260.0000.00717.23
8.0.250.0050.00216.86
8.0.240.0000.00716.95
8.0.230.0040.00416.95
8.0.220.0030.00316.80
8.0.210.0070.00016.85
8.0.200.0040.00416.97
8.0.190.0040.00416.84
8.0.180.0000.00716.93
8.0.170.0000.00816.82
8.0.160.0070.00016.88
8.0.150.0000.00716.80
8.0.140.0000.00716.77
8.0.130.0000.00513.31
8.0.120.0050.00316.86
8.0.110.0040.00416.86
8.0.100.0040.00416.92
8.0.90.0040.00416.80
8.0.80.0060.00916.93
8.0.70.0000.00716.89
8.0.60.0000.00716.91
8.0.50.0000.00716.73
8.0.30.0150.00316.95
8.0.20.0160.00417.40
8.0.10.0040.00416.90
8.0.00.0060.01316.75
7.4.330.0020.00216.85
7.4.320.0060.00016.46
7.4.300.0030.00316.52
7.4.290.0030.00316.54
7.4.280.0000.01016.48
7.4.270.0060.00016.45
7.4.260.0030.00316.54
7.4.250.0030.00616.46
7.4.240.0050.00216.50
7.4.230.0070.00016.38
7.4.220.0090.01216.43
7.4.210.0040.01016.51
7.4.200.0040.00416.65
7.4.160.0080.01116.43
7.4.150.0040.01317.40
7.4.140.0130.00617.86
7.4.130.0070.01016.60
7.4.120.0100.00816.44
7.4.110.0090.01016.22
7.4.100.0200.00016.52
7.4.90.0100.00716.67
7.4.80.0070.01319.39
7.4.70.0060.00916.70
7.4.60.0030.01316.43
7.4.50.0070.00716.26
7.4.40.0120.00616.57
7.4.30.0090.00916.25
7.4.00.0030.01414.68
7.3.330.0030.00313.17
7.3.320.0060.00013.35
7.3.310.0030.00316.35
7.3.300.0050.00216.44
7.3.290.0030.00316.31
7.3.280.0110.00816.32
7.3.270.0040.01417.40
7.3.260.0040.01816.31
7.3.250.0130.00516.52
7.3.240.0080.01416.46
7.3.230.0140.00316.59
7.3.210.0070.01016.66
7.3.200.0120.00919.39
7.3.190.0130.00316.55
7.3.180.0090.00616.32
7.3.170.0090.00616.31
7.3.160.0140.00716.28
7.3.10.0130.01015.87
7.3.00.0150.00615.95
7.2.330.0110.01016.56
7.2.320.0100.01016.61
7.2.310.0130.00316.67
7.2.300.0110.00716.31
7.2.290.0030.01316.55
7.2.130.0100.01016.11
7.2.120.0250.00015.92
7.2.110.0170.00416.64
7.2.100.0150.00316.23
7.2.90.0130.00816.48
7.2.80.0130.01316.54
7.2.70.0080.01116.64
7.2.60.0110.00816.36
7.2.50.0060.00916.28
7.2.40.0130.00616.19
7.2.30.0170.00616.54
7.2.20.0070.01016.35
7.2.10.0060.00916.28
7.2.00.0080.00717.84
7.1.250.0170.01015.13
7.1.200.0080.00015.68
7.1.100.0050.00317.86
7.1.70.0000.00817.00
7.1.60.0090.01619.21
7.1.50.0040.00816.80
7.1.00.0030.07722.28
7.0.200.0100.00616.66
7.0.60.0100.05021.67
7.0.50.0070.08317.88
7.0.40.0100.08020.24
7.0.30.0470.07020.11
7.0.20.0300.05720.15
7.0.10.0070.08720.12
7.0.00.0200.02720.33
5.6.280.0070.03320.82
5.6.210.0030.04320.75
5.6.200.0030.06718.30
5.6.190.0100.06720.48
5.6.180.0270.04320.52
5.6.170.0200.05020.45
5.6.160.0170.07320.59
5.6.150.0000.08718.16
5.6.140.0030.09018.22
5.6.130.0070.04018.20
5.6.120.0100.08721.12
5.6.110.0130.08020.98
5.6.100.0030.07321.04
5.6.90.0070.08320.98
5.6.80.0070.07320.44
5.5.350.0130.08020.44
5.5.340.0130.05718.05
5.5.330.0000.04320.13
5.5.320.0600.07320.33
5.5.310.0230.05320.27
5.5.300.0100.04017.93
5.5.290.0030.04317.97
5.5.280.0070.07320.96
5.5.270.0070.06320.80
5.5.260.0100.04020.68
5.5.250.0130.07020.62
5.5.240.0130.08320.04

preferences:
58.15 ms | 400 KiB | 5 Q