3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public $var = 1; public function dump(self $foo) { var_dump($foo); } } $foo = new Foo(); $foo->var = 10; $foo2 = new Foo(); $foo2->dump($foo); $foo2->dump(new stdClass);

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.0040.01416.63
8.3.50.0000.01416.44
8.3.40.0070.00718.67
8.3.30.0030.01219.02
8.3.20.0040.00420.21
8.3.10.0040.00423.70
8.3.00.0000.00721.78
8.2.180.0110.00416.75
8.2.170.0070.00722.96
8.2.160.0140.00020.52
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00420.98
8.2.120.0040.00426.35
8.2.110.0220.00019.32
8.2.100.0040.00717.80
8.2.90.0000.00819.22
8.2.80.0080.00017.97
8.2.70.0000.00917.50
8.2.60.0040.00417.91
8.2.50.0040.00418.09
8.2.40.0040.00422.23
8.2.30.0000.00719.44
8.2.20.0040.00417.75
8.2.10.0070.00018.13
8.2.00.0060.00318.00
8.1.280.0060.01225.92
8.1.270.0030.00522.24
8.1.260.0030.00628.09
8.1.250.0050.00328.09
8.1.240.0090.00019.09
8.1.230.0030.00717.64
8.1.220.0060.00317.74
8.1.210.0040.00418.77
8.1.200.0030.00617.22
8.1.190.0040.00417.25
8.1.180.0030.00518.10
8.1.170.0050.00318.42
8.1.160.0040.00420.77
8.1.150.0000.00820.62
8.1.140.0040.00419.41
8.1.130.0000.00717.66
8.1.120.0000.00817.43
8.1.110.0040.00417.49
8.1.100.0020.00517.37
8.1.90.0000.00817.30
8.1.80.0000.00717.30
8.1.70.0000.00717.40
8.1.60.0030.00617.57
8.1.50.0000.00817.55
8.1.40.0040.00417.54
8.1.30.0030.00517.68
8.1.20.0030.00517.69
8.1.10.0000.00817.57
8.1.00.0040.00417.50
8.0.300.0030.00518.77
8.0.290.0070.00016.75
8.0.280.0030.00318.36
8.0.270.0080.00017.19
8.0.260.0000.00617.20
8.0.250.0070.00017.01
8.0.240.0000.00716.86
8.0.230.0030.00316.93
8.0.220.0030.00616.87
8.0.210.0000.00716.89
8.0.200.0040.00416.98
8.0.190.0040.00416.98
8.0.180.0030.00316.95
8.0.170.0040.00416.91
8.0.160.0070.00016.89
8.0.150.0040.00416.82
8.0.140.0040.00416.76
8.0.130.0030.00313.31
8.0.120.0030.00616.80
8.0.110.0070.00016.89
8.0.100.0080.00016.79
8.0.90.0000.00816.92
8.0.80.0060.01516.90
8.0.70.0000.00716.79
8.0.60.0070.00016.89
8.0.50.0050.00316.77
8.0.30.0080.01217.05
8.0.20.0110.00817.40
8.0.10.0070.00017.01
8.0.00.0100.01116.64
7.4.330.0030.00316.79
7.4.320.0030.00316.45
7.4.300.0000.00716.43
7.4.290.0030.00316.57
7.4.280.0030.00616.45
7.4.270.0050.00316.54
7.4.260.0070.00016.57
7.4.250.0040.00416.47
7.4.240.0040.00416.66
7.4.230.0040.00416.42
7.4.220.0130.01316.55
7.4.210.0050.01216.64
7.4.200.0040.00416.49
7.4.160.0080.00816.56
7.4.150.0090.01217.40
7.4.140.0120.00717.86
7.4.130.0160.00916.54
7.4.120.0080.01016.64
7.4.110.0150.00916.43
7.4.100.0160.00716.69
7.4.90.0160.00616.45
7.4.80.0100.00719.39
7.4.70.0150.00316.44
7.4.60.0070.01016.47
7.4.50.0040.00716.62
7.4.40.0030.01416.27
7.4.30.0090.01316.57
7.4.00.0020.01614.89
7.3.330.0030.00313.20
7.3.320.0030.00313.32
7.3.310.0000.00716.33
7.3.300.0040.00416.21
7.3.290.0040.00416.35
7.3.280.0090.01116.36
7.3.270.0130.00317.40
7.3.260.0090.00916.37
7.3.240.0140.00516.40
7.3.230.0070.01016.39
7.3.210.0170.00316.21
7.3.200.0140.00719.39
7.3.190.0110.00516.38
7.3.180.0170.00016.35
7.3.170.0080.01116.38
7.3.160.0100.00716.50
7.3.120.0100.00815.98
7.3.110.0030.01515.82
7.3.100.0080.00816.11
7.3.90.0070.00516.02
7.3.80.0020.00815.99
7.3.70.0050.00516.02
7.3.60.0050.01115.94
7.3.50.0040.01015.90
7.3.40.0030.00815.81
7.3.30.0060.00715.84
7.3.20.0020.01116.77
7.3.10.0050.01016.94
7.3.00.0070.00516.85
7.2.330.0100.00716.34
7.2.320.0040.01816.41
7.2.310.0140.00416.50
7.2.300.0140.00316.71
7.2.290.0160.00016.62
7.2.250.0030.01615.05
7.2.240.0040.01116.05
7.2.230.0030.00816.06
7.2.220.0040.01116.08
7.2.210.0050.01115.99
7.2.200.0070.00716.06
7.2.190.0120.00516.10
7.2.180.0070.01116.21
7.2.170.0040.01016.04
7.2.160.0040.01117.15
7.2.150.0030.01017.15
7.2.140.0120.00317.15
7.2.130.0000.01117.15
7.2.120.0100.00717.15
7.2.110.0110.00717.15
7.2.100.0040.01117.15
7.2.90.0070.01117.15
7.2.80.0030.01017.15
7.2.70.0040.01517.15
7.2.60.0030.01116.99
7.2.50.0060.00917.15
7.2.40.0090.00317.15
7.2.30.0000.01317.15
7.2.20.0070.00717.15
7.2.10.0170.00017.15
7.2.00.0100.00318.34
7.1.330.0060.00916.42
7.1.320.0080.00616.47
7.1.310.0100.00316.43
7.1.300.0020.01216.54
7.1.290.0110.00616.48
7.1.280.0040.00816.43
7.1.270.0070.00816.32
7.1.260.0040.00716.30
7.1.250.0070.00717.15
7.1.200.0110.00015.55
7.1.100.0130.00618.24
7.1.70.0040.00416.97
7.1.60.0100.01319.40
7.1.50.0040.01816.96
7.1.00.0000.07722.31
7.0.200.0070.00316.78
7.0.60.0300.07321.77
7.0.50.0070.04017.92
7.0.40.0030.06020.11
7.0.30.0300.04720.26
7.0.20.0200.07020.12
7.0.10.0070.04320.25
7.0.00.0100.09020.33
5.6.280.0030.06321.08
5.6.210.0130.07320.72
5.6.200.0070.07018.15
5.6.190.0100.08720.47
5.6.180.0000.05720.64
5.6.170.0230.04020.57
5.6.160.0170.07320.71
5.6.150.0030.08718.18
5.6.140.0030.04018.27
5.6.130.0070.03718.26
5.6.120.0070.06021.03
5.6.110.0100.07320.96
5.6.100.0000.05720.99
5.6.90.0170.03021.00
5.6.80.0030.07020.37
5.5.350.0230.07020.41
5.5.340.0130.07317.95
5.5.330.0100.08020.23
5.5.320.0270.06020.27
5.5.310.0300.06320.41
5.5.300.0070.04318.01
5.5.290.0130.05317.99
5.5.280.0100.07720.84
5.5.270.0200.07320.82
5.5.260.0130.07720.84
5.5.250.0070.08320.59
5.5.240.0200.07320.15

preferences:
48.1 ms | 400 KiB | 5 Q