3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { protected $foo; public function getFoo() { return $this->foo; } } class Bar extends Foo { public function __construct($foo) { $this->foo = $foo; } } class FooBar { public $test = 'Hello World!'; } $test = new FooBar(); $foo = new Foo($test); $bar = new Bar($test); print_r($foo); echo "---\n"; print_r($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.00918.43
8.3.50.0080.01321.99
8.3.40.0150.00018.71
8.3.30.0080.00619.13
8.3.20.0060.00320.34
8.3.10.0040.00422.09
8.3.00.0080.00022.35
8.2.180.0000.01516.75
8.2.170.0140.00022.96
8.2.160.0030.01020.82
8.2.150.0060.00324.18
8.2.140.0080.00024.66
8.2.130.0040.01426.16
8.2.120.0080.00017.63
8.2.110.0090.00022.25
8.2.100.0080.00417.78
8.2.90.0000.00819.23
8.2.80.0040.00417.97
8.2.70.0040.00417.50
8.2.60.0000.00818.03
8.2.50.0000.00818.07
8.2.40.0000.00718.28
8.2.30.0080.00018.06
8.2.20.0040.00417.61
8.2.10.0000.00717.68
8.2.00.0040.00717.50
8.1.280.0040.01125.92
8.1.270.0040.00422.20
8.1.260.0060.00326.35
8.1.250.0030.00628.09
8.1.240.0060.00323.91
8.1.230.0040.00719.15
8.1.220.0000.00817.74
8.1.210.0030.00518.77
8.1.200.0040.00417.23
8.1.190.0080.00017.51
8.1.180.0030.00518.66
8.1.170.0040.00418.65
8.1.160.0000.00721.96
8.1.150.0030.00518.57
8.1.140.0040.00417.45
8.1.130.0030.00317.70
8.1.120.0070.00017.41
8.1.110.0040.00417.32
8.1.100.0050.00317.34
8.1.90.0030.00417.41
8.1.80.0040.00417.37
8.1.70.0000.00717.34
8.1.60.0090.00017.61
8.1.50.0000.00717.48
8.1.40.0000.00717.52
8.1.30.0000.00817.61
8.1.20.0080.00017.57
8.1.10.0070.00017.46
8.1.00.0040.00417.53
8.0.300.0000.00718.77
8.0.290.0050.00217.05
8.0.280.0000.00718.37
8.0.270.0030.00317.29
8.0.260.0000.00816.76
8.0.250.0040.00416.87
8.0.240.0030.00616.84
8.0.230.0000.00716.85
8.0.220.0040.00416.74
8.0.210.0050.00316.82
8.0.200.0060.00016.79
8.0.190.0000.01016.69
8.0.180.0040.00316.78
8.0.170.0060.00316.86
8.0.160.0050.00216.84
8.0.150.0040.00416.75
8.0.140.0040.00416.73
8.0.130.0050.00013.23
8.0.120.0000.00816.80
8.0.110.0050.00316.79
8.0.100.0040.00416.76
8.0.90.0000.00816.82
8.0.80.0070.01016.84
8.0.70.0000.00816.67
8.0.60.0000.00816.80
8.0.50.0040.00416.70
8.0.30.0120.00817.15
8.0.20.0070.01517.40
8.0.10.0000.00716.96
8.0.00.0050.01316.77
7.4.330.0050.00015.02
7.4.320.0030.00316.47
7.4.300.0030.00316.49
7.4.290.0070.00016.41
7.4.280.0000.00716.50
7.4.270.0030.00316.60
7.4.260.0060.00316.49
7.4.250.0060.00316.48
7.4.240.0040.00416.50
7.4.230.0000.00816.58
7.4.220.0090.00616.65
7.4.210.0090.00616.66
7.4.200.0000.00716.27
7.4.190.0070.00016.67
7.4.160.0080.00816.56
7.4.150.0070.01117.40
7.4.140.0100.01117.86
7.4.130.0090.01116.52
7.4.120.0080.01216.47
7.4.110.0070.01016.42
7.4.100.0120.00916.54
7.4.90.0090.00916.40
7.4.80.0100.01519.39
7.4.70.0070.01016.56
7.4.60.0080.00816.21
7.4.50.0030.00616.37
7.4.40.0080.00822.77
7.4.30.0130.00316.37
7.4.00.0070.00714.82
7.3.330.0060.00013.19
7.3.320.0000.00513.05
7.3.310.0040.00416.09
7.3.300.0000.00716.25
7.3.290.0090.00916.18
7.3.280.0050.01216.23
7.3.270.0030.01317.40
7.3.260.0110.00816.42
7.3.250.0080.01316.29
7.3.240.0090.00816.52
7.3.230.0180.00916.39
7.3.210.0130.00316.15
7.3.200.0090.01219.39
7.3.190.0170.00016.26
7.3.180.0100.00716.36
7.3.170.0070.01116.32
7.3.160.0080.00816.43
7.3.120.0030.01214.81
7.3.10.0140.00016.70
7.3.00.0030.01416.68
7.2.330.0130.00416.52
7.2.320.0100.01016.44
7.2.310.0060.00916.76
7.2.300.0140.01016.43
7.2.290.0080.00816.75
7.2.130.0070.00716.75
7.2.120.0060.00616.66
7.2.110.0130.00316.77
7.2.100.0030.01016.63
7.2.90.0070.00717.17
7.2.80.0100.00016.79
7.2.70.0070.00717.16
7.2.60.0040.00817.13
7.2.50.0060.00616.73
7.2.40.0060.00316.95
7.2.30.0070.00717.09
7.2.20.0030.00717.00
7.2.10.0000.01516.73
7.2.00.0100.00518.08
7.1.250.0030.01015.47
7.1.100.0100.00318.18
7.1.70.0040.00417.24
7.1.60.0140.01119.82
7.1.50.0070.01717.00
7.1.00.0030.09322.45
7.0.200.0030.00616.76
7.0.140.0130.06322.10
7.0.60.0100.07020.02
7.0.50.0070.08017.89
7.0.40.0070.09020.04
7.0.30.0230.06020.16
7.0.20.0270.06720.22
7.0.10.0300.03320.09
7.0.00.0000.04320.18
5.6.280.0000.07721.14
5.6.210.0070.07720.61
5.6.200.0100.08318.19
5.6.190.0030.05020.50
5.6.180.4030.04020.67
5.6.170.0300.07320.47
5.6.160.0030.04320.39
5.6.150.0030.07718.19
5.6.140.0070.03718.11
5.6.130.0100.06018.18
5.6.120.0130.05021.15
5.6.110.0130.08021.14
5.6.100.0070.08321.08
5.6.90.0100.06320.88
5.6.80.0070.07020.38
5.6.70.0330.06020.42
5.5.350.0000.07320.47
5.5.340.0100.05317.95
5.5.330.0100.05720.13
5.5.320.0200.04320.25
5.5.310.0130.04720.23
5.5.300.0200.07017.98
5.5.290.0070.04018.03
5.5.280.0030.04320.86
5.5.270.0100.08020.89
5.5.260.0000.05020.77
5.5.250.0100.04020.79
5.5.240.0130.07720.19
5.4.450.0470.05719.45
5.4.440.0530.05719.70
5.4.430.0070.05719.36
5.4.420.0100.05719.63
5.4.410.0200.04719.28
5.4.400.0830.00018.75
5.4.390.0800.00018.75
5.4.380.0270.05318.75
5.4.370.0230.05318.76
5.4.360.0470.05718.47
5.4.350.0300.05718.76
5.4.340.0470.04318.51
5.4.320.0090.04212.51
5.4.310.0080.03812.50
5.4.300.0050.03712.50
5.4.290.0050.04512.50
5.4.280.0040.04112.40
5.4.270.0070.04112.39
5.4.260.0130.05018.98
5.4.250.0030.06019.04
5.4.240.0100.04718.92
5.4.230.0070.05018.76
5.4.220.0230.03718.79
5.4.210.0070.05318.82
5.4.200.0000.06018.99
5.4.190.0300.05018.78
5.4.180.0170.07718.99
5.4.170.0030.05718.93
5.4.160.0170.04718.63
5.4.150.0100.06019.00
5.4.140.0170.04716.37
5.4.130.0100.04316.41
5.4.120.0100.07716.40
5.4.110.0030.06016.43
5.4.100.0170.06316.41
5.4.90.0100.05016.42
5.4.80.0230.05316.61
5.4.70.0100.07316.61
5.4.60.0170.05716.38
5.4.50.0300.05016.38
5.4.40.0070.05316.57
5.4.30.0070.05316.48
5.4.20.0170.05716.46
5.4.10.0100.05016.54
5.4.00.0100.04716.00
5.3.290.0080.03712.80
5.3.280.0100.05014.77
5.3.270.0100.07714.44
5.3.260.0130.07314.60
5.3.250.0070.05314.61
5.3.240.0070.05014.44
5.3.230.0100.04714.69
5.3.220.0100.04714.56
5.3.210.0030.05714.79
5.3.200.0170.04314.65
5.3.190.0100.06714.40
5.3.180.0070.05014.65
5.3.170.0100.06014.58
5.3.160.0100.05314.75
5.3.150.0070.07014.55
5.3.140.0170.04014.56
5.3.130.0070.05714.54
5.3.120.0100.05014.52
5.3.110.0070.05714.54
5.3.100.0070.05314.13
5.3.90.0030.05714.20
5.3.80.0000.05314.18
5.3.70.0070.04714.24
5.3.60.0000.05713.99
5.3.50.0100.05014.04
5.3.40.0100.05013.94
5.3.30.0070.06013.91
5.3.20.0100.06313.88
5.3.10.0100.06013.55
5.3.00.0200.05713.71
5.2.170.0030.04311.20
5.2.160.0070.04011.05
5.2.150.0030.04311.33
5.2.140.0070.04311.37
5.2.130.0070.06011.10
5.2.120.0130.03310.96
5.2.110.0070.05311.16
5.2.100.0130.03311.08
5.2.90.0100.04311.11
5.2.80.0130.03711.18
5.2.70.0100.03711.06
5.2.60.0070.04011.27
5.2.50.0170.04711.09
5.2.40.0030.05710.91
5.2.30.0000.05010.98
5.2.20.0070.04010.79
5.2.10.0000.05011.05
5.2.00.0000.04710.89
5.1.60.0100.0339.96
5.1.50.0000.0379.96
5.1.40.0030.0379.95
5.1.30.0030.04010.55
5.1.20.0070.03710.43
5.1.10.0030.03710.23
5.1.00.0000.03710.27
5.0.50.0000.0308.59
5.0.40.0000.0308.37
5.0.30.0030.0438.30
5.0.20.0000.0308.19
5.0.10.0030.0278.16
5.0.00.0030.0478.17
4.4.90.0100.0137.50
4.4.80.0030.0337.50
4.4.70.0000.0237.50
4.4.60.0030.0277.50
4.4.50.0070.0237.50
4.4.40.0000.0377.50
4.4.30.0000.0237.50
4.4.20.0000.0277.50
4.4.10.0030.0337.50
4.4.00.0000.0377.50
4.3.110.0000.0277.50
4.3.100.0070.0177.50
4.3.90.0030.0207.50
4.3.80.0000.0377.50
4.3.70.0000.0237.50
4.3.60.0000.0207.50
4.3.50.0070.0177.50
4.3.40.0000.0377.50
4.3.30.0030.0207.50
4.3.20.0000.0237.50
4.3.10.0000.0277.50
4.3.00.0030.0307.50

preferences:
52.65 ms | 401 KiB | 5 Q