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); 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.60.0110.00416.75
8.3.50.0090.00816.58
8.3.40.0100.00718.71
8.3.30.0120.00918.50
8.3.20.0000.00818.61
8.3.10.0050.00320.34
8.3.00.0090.00019.12
8.2.180.0080.00616.38
8.2.170.0120.00922.96
8.2.160.0040.01120.89
8.2.150.0040.00424.18
8.2.140.0090.00924.66
8.2.130.0040.00426.16
8.2.120.0040.00420.71
8.2.110.0000.01020.99
8.2.100.0080.00417.59
8.2.90.0030.00519.05
8.2.80.0000.00817.97
8.2.70.0030.00617.38
8.2.60.0060.00317.80
8.2.50.0060.00318.07
8.2.40.0040.00418.09
8.2.30.0040.00417.90
8.2.20.0040.00417.64
8.2.10.0000.00717.49
8.2.00.0040.00417.59
8.1.280.0110.00325.92
8.1.270.0060.00324.66
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00721.30
8.1.230.0070.00417.45
8.1.220.0070.00017.74
8.1.210.0000.00818.77
8.1.200.0070.00317.23
8.1.190.0040.00417.23
8.1.180.0000.00818.10
8.1.170.0000.00818.78
8.1.160.0030.00518.82
8.1.150.0070.00018.58
8.1.140.0040.00417.42
8.1.130.0030.00317.87
8.1.120.0020.00517.40
8.1.110.0030.00517.34
8.1.100.0080.00017.29
8.1.90.0030.00317.30
8.1.80.0070.00017.29
8.1.70.0030.00317.34
8.1.60.0060.00317.49
8.1.50.0040.00417.48
8.1.40.0040.00417.52
8.1.30.0050.00217.56
8.1.20.0000.00817.61
8.1.10.0000.00717.40
8.1.00.0060.00317.46
8.0.300.0040.00418.77
8.0.290.0000.00716.58
8.0.280.0000.00718.38
8.0.270.0030.00317.20
8.0.260.0060.00016.67
8.0.250.0000.00816.77
8.0.240.0050.00316.86
8.0.230.0000.00816.77
8.0.220.0000.00716.86
8.0.210.0030.00516.82
8.0.200.0040.00416.86
8.0.190.0020.00516.88
8.0.180.0000.00716.76
8.0.170.0000.00816.80
8.0.160.0000.00716.85
8.0.150.0040.00416.83
8.0.140.0000.00716.85
8.0.130.0030.00313.30
8.0.120.0040.00416.70
8.0.110.0080.00016.62
8.0.100.0040.00416.89
8.0.90.0040.00416.71
8.0.80.0030.01316.79
8.0.70.0040.00416.89
8.0.60.0040.00416.70
8.0.50.0030.00516.63
8.0.30.0180.00516.93
8.0.20.0110.00917.15
8.0.10.0050.00216.72
8.0.00.0100.00716.55
7.4.330.0000.00712.85
7.4.320.0030.00316.34
7.4.300.0060.00016.36
7.4.290.0060.00616.57
7.4.280.0040.00416.36
7.4.270.0030.00616.57
7.4.260.0020.00313.14
7.4.250.0060.00316.39
7.4.240.0040.00416.40
7.4.230.0000.00716.70
7.4.220.0060.01016.54
7.4.210.0060.01116.59
7.4.200.0040.00416.48
7.4.190.0040.00416.69
7.4.160.0120.00616.43
7.4.150.0110.00716.33
7.4.140.0090.00816.52
7.4.130.0090.00816.37
7.4.120.0170.00016.45
7.4.110.0060.01116.41
7.4.100.0100.00716.39
7.4.90.0110.01116.77
7.4.80.0090.01219.39
7.4.70.0150.00416.53
7.4.60.0150.00316.35
7.4.50.0040.00816.39
7.4.40.0070.01016.56
7.4.30.0070.01016.29
7.4.00.0070.01015.03
7.3.330.0030.00313.21
7.3.320.0000.00613.08
7.3.310.0030.00316.09
7.3.300.0030.00316.21
7.3.290.0110.00716.24
7.3.280.0140.00616.21
7.3.270.0070.01116.41
7.3.260.0120.00616.45
7.3.250.0050.01116.33
7.3.240.0170.00316.53
7.3.230.0150.00816.29
7.3.210.0070.01016.28
7.3.200.0090.00616.11
7.3.190.0170.00616.58
7.3.180.0070.00716.24
7.3.170.0070.00816.39
7.3.160.0120.00916.29
7.3.120.0090.00614.82
7.3.00.0030.00816.51
7.2.330.0030.01416.31
7.2.320.0130.01216.64
7.2.310.0090.01216.48
7.2.300.0120.00816.55
7.2.290.0060.00916.66
7.2.130.0100.00316.51
7.2.120.0060.00916.88
7.2.110.0070.00916.85
7.2.100.0080.00616.53
7.2.90.0100.00516.76
7.2.80.0050.00716.62
7.2.70.0060.00616.92
7.2.60.0070.00916.73
7.2.50.0050.00816.88
7.2.40.0070.00516.96
7.2.30.0060.00716.85
7.2.20.0030.00916.83
7.2.10.0080.00516.70
7.2.00.0080.01117.72
7.1.250.0040.00715.59
7.1.240.0040.00715.89
7.1.230.0050.00715.61
7.1.220.0070.00815.61
7.1.210.0040.00815.60
7.1.200.0080.00315.73
7.1.190.0030.00815.62
7.1.180.0040.00615.71
7.1.170.0050.01015.70
7.1.160.0110.00315.75
7.1.150.0030.01115.77
7.1.140.0020.01215.82
7.1.130.0080.00715.62
7.1.120.0050.00615.81
7.1.110.0040.00915.79
7.1.100.0060.00516.52
7.1.90.0000.01415.84
7.1.80.0090.00315.75
7.1.70.0050.00516.18
7.1.60.0070.01117.08
7.1.50.0010.01316.20
7.1.40.0090.00615.86
7.1.30.0060.00815.78
7.1.20.0040.01115.71
7.1.10.0030.00815.68
7.1.00.0050.02517.84
7.0.330.0080.00315.05
7.0.320.0000.01115.28
7.0.310.0030.00815.16
7.0.300.0060.00515.37
7.0.290.0070.00515.30
7.0.280.0030.00915.30
7.0.270.0080.00315.40
7.0.260.0040.00815.25
7.0.250.0090.00415.50
7.0.240.0090.00415.33
7.0.230.0100.00315.32
7.0.220.0060.00615.39
7.0.210.0050.00715.38
7.0.200.0030.01015.90
7.0.190.0030.00715.18
7.0.180.0110.00315.42
7.0.170.0080.00315.26
7.0.160.0080.00715.35
7.0.150.0030.00815.41
7.0.140.0070.02617.60
7.0.130.0040.00515.41
7.0.120.0040.02917.54
7.0.110.0030.01115.45
7.0.100.0040.00815.50
7.0.90.0100.00215.40
7.0.80.0060.00415.38
7.0.70.0060.00515.44
7.0.60.0060.01616.69
7.0.50.0080.01916.21
7.0.40.0060.02015.74
7.0.30.0170.02715.75
7.0.20.0160.02515.62
7.0.10.0120.02615.69
7.0.00.0040.03915.68
5.6.380.0060.00914.28
5.6.370.0060.00614.47
5.6.360.0040.00814.33
5.6.350.0140.00214.14
5.6.340.0080.00314.09
5.6.330.0030.01014.37
5.6.320.0040.00814.31
5.6.310.0070.00714.44
5.6.300.0060.00614.25
5.6.290.0100.00414.47
5.6.280.0040.02916.57
5.6.270.0050.00914.42
5.6.260.0050.00514.48
5.6.250.0040.00614.29
5.6.240.0030.00914.24
5.6.230.0080.00514.29
5.6.220.0060.00714.21
5.6.210.0030.03216.62
5.6.200.0040.03015.59
5.6.190.0060.03216.48
5.6.180.0120.02716.40
5.6.170.0130.01816.31
5.6.160.0080.02216.42
5.6.150.0040.01915.57
5.6.140.0080.02815.57
5.6.130.0080.01615.74
5.6.120.0050.03216.65
5.6.110.0060.01816.37
5.6.100.0060.03216.52
5.6.90.0000.02216.54
5.6.80.0070.02616.39
5.6.70.0080.02616.38
5.6.60.0040.01114.15
5.6.50.0080.00114.31
5.6.40.0040.00814.33
5.6.30.0030.00814.08
5.6.20.0070.00514.24
5.6.10.0090.00314.21
5.6.00.0050.00614.20
5.5.380.0050.00511.84
5.5.370.0020.00711.96
5.5.360.0050.00512.06
5.5.350.0070.02014.82
5.5.340.0040.01714.07
5.5.330.0060.02414.71
5.5.320.0020.02414.68
5.5.310.0070.01614.72
5.5.300.0020.02414.05
5.5.290.0090.01214.05
5.5.280.0030.03014.88
5.5.270.0060.01514.88
5.5.260.0080.02814.88
5.5.250.0010.03314.84
5.5.240.0020.02514.68
5.5.230.0060.00411.94
5.5.220.0020.00811.84
5.5.210.0060.00311.96
5.5.200.0070.00111.89
5.5.190.0030.00611.96
5.5.180.0040.00411.84
5.5.170.0060.00512.71
5.5.160.0040.00711.99
5.5.150.0030.00511.96
5.5.140.0010.00611.88
5.5.130.0050.00511.99
5.5.120.0050.00711.85
5.5.110.0080.00112.00
5.5.100.0060.00311.85
5.5.90.0040.00411.98
5.5.80.0030.00611.84
5.5.70.0050.00511.97
5.5.60.0050.00411.90
5.5.50.0020.00711.90
5.5.40.0060.00412.02
5.5.30.0090.00211.94
5.5.20.0050.00511.84
5.5.10.0060.00411.97
5.5.00.0050.00712.01
5.4.450.0090.02614.43
5.4.440.0090.02714.44
5.4.430.0040.03314.38
5.4.420.0030.03214.35
5.4.410.0090.01714.45
5.4.400.0060.01914.27
5.4.390.0080.02414.34
5.4.380.0070.02014.32
5.4.370.0060.02514.25
5.4.360.0090.02214.24
5.4.350.0040.03114.20
5.4.340.0060.03014.31
5.4.330.0060.00311.88
5.4.320.0050.02214.32
5.4.310.0120.02314.24
5.4.300.0060.02314.18
5.4.290.0070.02214.22
5.4.280.0060.01614.28
5.4.270.0080.02514.22
5.4.260.0070.02314.28
5.4.250.0110.02314.27
5.4.240.0060.01914.30
5.4.230.0070.01514.17
5.4.220.0070.02214.19
5.4.210.0070.02714.27
5.4.200.0080.02114.31
5.4.190.0090.02414.25
5.4.180.0070.02614.30
5.4.170.0100.02514.27
5.4.160.0060.01614.27
5.4.150.0080.02214.32
5.4.140.0080.02113.44
5.4.130.0060.02513.34
5.4.120.0060.02713.41
5.4.110.0090.02713.42
5.4.100.0070.02813.42
5.4.90.0070.02313.41
5.4.80.0050.01513.51
5.4.70.0070.02413.42
5.4.60.0110.02313.44
5.4.50.0050.02913.36
5.4.40.0040.02813.47
5.4.30.0080.02713.38
5.4.20.0090.01613.40
5.4.10.0060.01513.39
5.4.00.0100.01013.26
5.3.290.0060.02512.78
5.3.280.0070.02312.77
5.3.270.0070.02812.78
5.3.260.0060.01912.78
5.3.250.0040.02612.77
5.3.240.0040.02512.82
5.3.230.0060.01712.76
5.3.220.0070.01912.75
5.3.210.0110.02112.72
5.3.200.0070.02512.80
5.3.190.0060.02912.75
5.3.180.0100.01212.77
5.3.170.0050.02512.76
5.3.160.0080.02312.75
5.3.150.0070.02512.73
5.3.140.0020.03112.77
5.3.130.0090.02612.76
5.3.120.0110.01312.74
5.3.110.0030.01812.72
5.3.100.0050.01312.58
5.3.90.0050.01412.59
5.3.80.0060.01412.56
5.3.70.0050.01312.58
5.3.60.0060.01512.57
5.3.50.0040.01312.56
5.3.40.0040.01512.55
5.3.30.0050.01212.50
5.3.20.0030.01712.47
5.3.10.0080.01112.42
5.3.00.0050.01612.46
5.2.170.0060.01011.63
5.2.160.0030.01311.63
5.2.150.0080.01011.67
5.2.140.0020.01411.64
5.2.130.0040.01311.65
5.2.120.0050.01211.62
5.2.110.0050.01211.60
5.2.100.0060.01111.60
5.2.90.0040.01211.65
5.2.80.0070.01011.62
5.2.70.0040.01311.59
5.2.60.0050.01211.57
5.2.50.0060.01111.53
5.2.40.0030.01411.58
5.2.30.0030.01411.56
5.2.20.0050.01111.56
5.2.10.0060.01011.50
5.2.00.0090.01111.49
5.1.60.0020.01111.20
5.1.50.0030.01111.25
5.1.40.0060.00911.22
5.1.30.0060.00911.39
5.1.20.0060.00911.34
5.1.10.0010.01411.27
5.1.00.0040.01211.27
5.0.50.0020.01011.13
5.0.40.0020.00811.13
5.0.30.0050.01111.13
5.0.20.0060.00611.13
5.0.10.0050.00711.13
5.0.00.0030.01011.13
4.4.90.0030.00811.13
4.4.80.0020.00611.13
4.4.70.0040.00611.13
4.4.60.0030.00711.13
4.4.50.0020.00811.13
4.4.40.0010.01011.13
4.4.30.0030.00711.13
4.4.20.0030.00711.13
4.4.10.0010.00811.13
4.4.00.0010.01211.13
4.3.110.0020.00711.13
4.3.100.0010.00711.13
4.3.90.0040.00511.13
4.3.80.0050.01011.13
4.3.70.0030.00711.13
4.3.60.0010.00811.13
4.3.50.0020.00611.13
4.3.40.0030.00911.13
4.3.30.0000.00811.13
4.3.20.0020.00811.13
4.3.10.0020.00711.13
4.3.00.0020.00611.13

preferences:
43.22 ms | 401 KiB | 5 Q