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 Test(); $foo = new Foo($test); $bar = new Bar($test); var_dump($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.40.0150.00318.92
8.3.30.0070.01318.85
8.3.20.0040.00420.25
8.3.10.0080.00022.09
8.3.00.0040.00422.52
8.2.170.0040.01122.96
8.2.160.0030.01420.90
8.2.150.0000.00824.18
8.2.140.0000.00824.66
8.2.130.0110.00426.16
8.2.120.0080.00017.63
8.2.110.0090.00022.13
8.2.100.0060.00617.84
8.2.90.0090.00217.38
8.2.80.0080.00017.97
8.2.70.0030.00618.04
8.2.60.0000.00817.92
8.2.50.0040.00418.10
8.2.40.0000.00820.33
8.2.30.0040.00417.90
8.2.20.0070.00017.63
8.2.10.0000.00817.71
8.2.00.0070.00417.61
8.1.270.0040.00422.04
8.1.260.0070.01026.35
8.1.250.0050.00328.09
8.1.240.0060.00322.05
8.1.230.0060.00519.21
8.1.220.0090.00017.74
8.1.210.0040.00418.77
8.1.200.0070.00417.23
8.1.190.0000.00917.10
8.1.180.0050.00318.10
8.1.170.0050.00218.59
8.1.160.0030.00521.82
8.1.150.0030.00518.43
8.1.140.0040.00417.23
8.1.130.0070.00017.66
8.1.120.0040.00417.32
8.1.110.0050.00317.34
8.1.100.0040.00417.33
8.1.90.0030.00517.38
8.1.80.0020.00517.28
8.1.70.0030.00317.23
8.1.60.0030.00717.45
8.1.50.0040.00417.36
8.1.40.0050.00317.40
8.1.30.0000.00717.61
8.1.20.0050.00317.54
8.1.10.0040.00417.48
8.1.00.0050.00217.45
8.0.300.0070.00019.92
8.0.290.0040.00416.63
8.0.280.0030.00318.38
8.0.270.0030.00317.19
8.0.260.0030.00316.86
8.0.250.0030.00317.02
8.0.240.0040.00416.82
8.0.230.0030.00316.83
8.0.220.0000.00716.93
8.0.210.0000.00716.85
8.0.200.0000.00716.93
8.0.190.0040.00416.97
8.0.180.0040.00416.80
8.0.170.0080.00016.79
8.0.160.0000.00716.77
8.0.150.0090.00016.86
8.0.140.0070.00016.91
8.0.130.0060.00013.25
8.0.120.0050.00316.71
8.0.110.0040.00416.86
8.0.100.0000.00716.89
8.0.90.0040.00416.93
8.0.80.0070.01016.95
8.0.70.0000.00716.76
8.0.60.0040.00416.76
8.0.50.0000.00716.95
8.0.30.0120.01017.13
8.0.20.0110.00817.40
8.0.10.0000.00716.81
8.0.00.0090.00816.56
7.4.330.0020.00215.00
7.4.320.0030.00316.48
7.4.300.0000.00716.48
7.4.290.0040.00416.45
7.4.280.0060.00316.38
7.4.270.0000.00716.45
7.4.260.0030.00616.32
7.4.250.0070.00016.40
7.4.240.0000.00716.50
7.4.230.0000.00716.65
7.4.220.0030.01216.62
7.4.210.0050.01016.48
7.4.200.0000.00716.63
7.4.190.0000.00716.46
7.4.160.0090.00616.63
7.4.150.0110.00717.40
7.4.140.0120.00917.86
7.4.130.0100.00716.41
7.4.120.0120.00616.49
7.4.110.0160.00016.46
7.4.100.0090.01216.48
7.4.90.0120.00616.28
7.4.80.0130.01019.39
7.4.70.0040.01216.63
7.4.60.0060.01116.41
7.4.50.0080.00016.43
7.4.40.0080.00822.77
7.4.30.0090.00616.33
7.4.10.0120.00616.43
7.4.00.0070.01015.32
7.3.330.0050.00013.13
7.3.320.0030.00313.30
7.3.310.0040.00416.46
7.3.300.0030.00316.14
7.3.290.0070.00716.33
7.3.280.0090.00616.27
7.3.270.0080.00817.40
7.3.260.0080.00916.41
7.3.250.0110.00716.37
7.3.240.0060.01416.36
7.3.230.0180.00616.39
7.3.210.0090.00916.53
7.3.200.0040.01419.39
7.3.190.0140.00716.36
7.3.180.0140.00216.36
7.3.170.0150.00616.30
7.3.160.0090.00616.51
7.3.130.0030.01516.50
7.3.120.0060.01015.33
7.3.110.0070.00715.62
7.3.100.0080.00715.64
7.3.90.0070.00715.49
7.3.80.0040.00915.57
7.3.70.0070.00915.34
7.3.60.0070.00515.43
7.3.50.0090.00715.67
7.3.40.0060.01115.46
7.3.30.0050.00815.56
7.3.20.0080.00717.49
7.3.10.0050.00717.27
7.3.00.0080.00717.28
7.2.330.0030.01816.55
7.2.320.0100.01416.61
7.2.310.0110.00716.64
7.2.300.0140.00316.26
7.2.290.0030.01316.28
7.2.260.0130.00716.30
7.2.250.0090.01115.60
7.2.240.0040.01215.82
7.2.230.0020.01515.64
7.2.220.0080.00515.73
7.2.210.0070.01015.68
7.2.200.0080.00715.65
7.2.190.0070.00615.48
7.2.180.0050.01115.57
7.2.170.0120.00615.56
7.2.160.0120.00616.35
7.2.150.0030.01318.20
7.2.140.0000.01118.11
7.2.130.0030.01018.35
7.2.120.0060.01218.16
7.2.110.0040.01118.20
7.2.100.0040.00718.31
7.2.90.0100.00718.31
7.2.80.0070.00418.27
7.2.70.0040.01518.33
7.2.60.0060.00717.65
7.2.50.0090.00618.23
7.2.40.0090.00318.34
7.2.30.0070.01318.36
7.2.20.0160.00318.21
7.2.10.0000.01318.23
7.2.00.0040.01218.22
7.1.330.0090.00516.48
7.1.320.0080.00316.34
7.1.310.0080.00616.34
7.1.300.0090.00616.26
7.1.290.0080.00716.40
7.1.280.0040.01216.35
7.1.270.0050.01016.36
7.1.260.0060.00716.39
7.1.250.0030.00717.00
7.1.240.0140.00317.15
7.1.230.0030.00617.18
7.1.220.0100.00617.05
7.1.210.0040.01517.17
7.1.200.0020.01016.25
7.1.190.0060.00917.04
7.1.180.0030.01017.15
7.1.170.0060.00917.11
7.1.160.0030.01017.10
7.1.150.0070.01117.02
7.1.140.0100.01017.05
7.1.130.0030.01016.98
7.1.120.0070.00717.21
7.1.110.0070.01017.14
7.1.100.0070.00716.96
7.1.90.0110.00416.98
7.1.80.0040.01217.13
7.1.70.0070.00316.93
7.1.60.0090.00918.49
7.1.50.0080.00816.95
7.1.40.0040.01217.17
7.1.30.0030.00617.13
7.1.20.0040.00817.13
7.1.10.0060.00317.11
7.1.00.0060.03919.89
7.0.330.0040.00716.62
7.0.320.0030.00716.89
7.0.310.0070.00716.91
7.0.300.0030.00916.85
7.0.290.0060.00916.77
7.0.280.0030.01716.95
7.0.270.0100.00716.90
7.0.260.0030.01017.00
7.0.250.0130.00316.95
7.0.240.0030.01216.91
7.0.230.0060.01016.84
7.0.220.0070.00717.12
7.0.210.0000.01416.93
7.0.200.0070.00116.76
7.0.190.0030.00916.74
7.0.180.0060.00316.80
7.0.170.0000.01016.86
7.0.160.0000.01316.89
7.0.150.0060.00316.73
7.0.140.0030.03819.39
7.0.130.0060.00916.97
7.0.120.0100.00316.75
7.0.110.0060.00916.76
7.0.100.0070.00716.99
7.0.90.0090.00916.81
7.0.80.0050.00916.91
7.0.70.0070.00316.77
7.0.60.0050.04018.40
7.0.50.0070.02517.38
7.0.40.0090.04417.55
7.0.30.0200.03917.52
7.0.20.0190.03717.58
7.0.10.0030.05117.58
7.0.00.0020.05017.51
5.6.400.0040.00815.73
5.6.390.0070.00715.71
5.6.380.0040.01216.03
5.6.370.0110.00715.82
5.6.360.0100.00315.43
5.6.350.0120.00915.71
5.6.340.0000.01815.61
5.6.330.0110.00715.75
5.6.320.0070.00715.41
5.6.310.0030.01215.66
5.6.300.0070.00716.00
5.6.290.0150.00015.80
5.6.280.0020.04418.42
5.6.270.0030.01215.41
5.6.260.0040.00915.52
5.6.250.0060.00815.78
5.6.240.0040.00815.95
5.6.230.0040.00815.41
5.6.220.0060.01215.39
5.6.210.0080.04618.23
5.6.200.0070.04316.93
5.6.190.0050.04718.10
5.6.180.0080.02918.06
5.6.170.0130.02218.19
5.6.160.0080.02017.98
5.6.150.0030.02517.04
5.6.140.0100.03717.03
5.6.130.0070.04016.99
5.6.120.0090.04418.38
5.6.110.0100.04318.43
5.6.100.0060.02318.28
5.6.90.0070.02218.26
5.6.80.0080.03617.91
5.6.70.2290.02417.99
5.6.60.0070.00715.54
5.6.50.0140.00315.75
5.6.40.0070.01115.70
5.6.30.0040.00815.55
5.6.20.0100.00315.42
5.6.10.0140.00015.20
5.6.00.0090.00015.45
5.5.380.0000.01615.58
5.5.370.0110.00415.69
5.5.360.0070.01015.62
5.5.350.0120.03217.98
5.5.340.0030.04316.70
5.5.330.0070.04117.87
5.5.320.0200.03817.92
5.5.310.0150.04217.85
5.5.300.0090.03616.71
5.5.290.0050.04816.75
5.5.280.0030.04918.16
5.5.270.0180.03518.07
5.5.260.0120.04018.10
5.5.250.0110.04318.01
5.5.240.0080.02317.84
5.5.230.0060.00315.53
5.5.220.0070.00715.45
5.5.210.0070.01015.29
5.5.200.0030.01415.55
5.5.190.0080.00315.21
5.5.180.0040.01215.01
5.5.170.0030.00615.32
5.5.160.0000.01115.36
5.5.150.0040.00715.54
5.5.140.0080.00815.37
5.5.130.0100.00315.42
5.5.120.0120.00315.14
5.5.110.0060.01215.49
5.5.100.0090.01215.47
5.5.90.0060.01315.24
5.5.80.0080.00815.32
5.5.70.0110.00315.26
5.5.60.0070.00715.28
5.5.50.0030.01015.32
5.5.40.0090.00315.41
5.5.30.0070.00715.24
5.5.20.0030.00615.48
5.5.10.0000.01415.36
5.5.00.0070.00715.48
5.4.450.0410.03116.37
5.4.440.0100.03116.42
5.4.430.0050.03816.32
5.4.420.0080.02816.35
5.4.410.0030.03516.20
5.4.400.0790.00116.01
5.4.390.0870.00216.04
5.4.380.0140.02815.93
5.4.370.0410.03116.01
5.4.360.0270.02216.04
5.4.350.0170.03515.86
5.4.340.0180.02315.91
5.4.330.0090.00313.29
5.4.320.0060.02212.90
5.4.310.0060.02312.89
5.4.300.0070.02112.90
5.4.290.0060.02112.89
5.4.280.0060.02012.84
5.4.270.0050.02512.84
5.4.260.0070.03316.16
5.4.250.0140.02716.13
5.4.240.0040.03016.09
5.4.230.0030.03616.06
5.4.220.0080.04215.97
5.4.210.0060.03916.11
5.4.200.0060.03016.04
5.4.190.0030.03916.14
5.4.180.0050.02816.00
5.4.170.0080.02516.13
5.4.160.0020.03216.12
5.4.150.0050.03016.03
5.4.140.0050.04314.97
5.4.130.0090.02514.95
5.4.120.0090.02814.96
5.4.110.0070.02614.98
5.4.100.0050.02914.92
5.4.90.0060.02614.93
5.4.80.0020.03314.90
5.4.70.0080.02614.87
5.4.60.0090.04014.94
5.4.50.0030.03014.82
5.4.40.0050.02914.87
5.4.30.0030.02914.81
5.4.20.0100.02514.81
5.4.10.0040.03414.90
5.4.00.0050.03914.56
5.3.290.0090.02513.04
5.3.280.0110.02613.99
5.3.270.0050.03213.90
5.3.260.0050.03013.94
5.3.250.0060.03813.90
5.3.240.0030.03213.98
5.3.230.0110.02514.01
5.3.220.0080.02313.92
5.3.210.0050.04613.92
5.3.200.0080.02613.97
5.3.190.0050.02913.97
5.3.180.0140.02213.98
5.3.170.0090.03113.93
5.3.160.0070.04214.04
5.3.150.0060.03613.84
5.3.140.0160.02114.02
5.3.130.0130.03313.96
5.3.120.0070.02914.00
5.3.110.0020.03413.91
5.3.100.0080.03313.70
5.3.90.0130.03013.69
5.3.80.0110.03313.68
5.3.70.0030.03113.65
5.3.60.0080.02213.75
5.3.50.0050.03713.63
5.3.40.0050.04013.66
5.3.30.0070.02913.61
5.3.20.0030.02913.48
5.3.10.0100.02513.48
5.3.00.0030.04713.42
5.2.170.0130.03711.14
5.2.160.0070.06011.23
5.2.150.0130.05711.15
5.2.140.0100.05011.23
5.2.130.0070.03711.09
5.2.120.0070.03711.01
5.2.110.0030.04311.09
5.2.100.0030.04311.10
5.2.90.0000.05011.18
5.2.80.0200.03711.05
5.2.70.0100.04011.16
5.2.60.0000.04711.27
5.2.50.0070.04010.92
5.2.40.0070.03711.09
5.2.30.0070.04011.07
5.2.20.0100.04710.91
5.2.10.0130.03711.08
5.2.00.0070.05010.71
5.1.60.0130.02710.07
5.1.50.0070.04310.09
5.1.40.0070.04310.03
5.1.30.0100.03010.24
5.1.20.0000.04310.26
5.1.10.0100.03310.13
5.1.00.0100.03010.14
5.0.50.0000.0378.52
5.0.40.0130.0178.41
5.0.30.0030.0408.33
5.0.20.0030.0338.35
5.0.10.0000.0308.33
5.0.00.0070.0508.23
4.4.90.0030.0307.50
4.4.80.0070.0237.50
4.4.70.0030.0237.50
4.4.60.0030.0307.50
4.4.50.0030.0277.50
4.4.40.0030.0377.50
4.4.30.0030.0207.50
4.4.20.0000.0337.50
4.4.10.0000.0307.50
4.4.00.0000.0337.50
4.3.110.0030.0207.50
4.3.100.0030.0207.50
4.3.90.0000.0237.50
4.3.80.0030.0307.50
4.3.70.0100.0137.50
4.3.60.0030.0207.50
4.3.50.0000.0277.50
4.3.40.0030.0337.50
4.3.30.0000.0237.50
4.3.20.0000.0237.50
4.3.10.0030.0277.50
4.3.00.0030.0207.50

preferences:
46.76 ms | 400 KiB | 5 Q