3v4l.org

run code in 300+ PHP versions simultaneously
<?php class InCommon { private $baz = 'foo'; public function out($pref){ echo "\n".$pref.'::$baz = '.$this->baz; } } class Foo extends InCommon {} class Bar extends InCommon { public function peek($target, $pref){ echo "\n".'peek @'.$pref.'::$baz = '.$target->baz; } public function mess($target){ $target->baz = 'cats'; } } $foo = new Foo(); $bar = new Bar(); $bar->mess($foo); $bar->peek($foo, 'Foo'); $foo->out('Foo');

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.01118.52
8.3.50.0180.00422.05
8.3.40.0070.01118.79
8.3.30.0110.00719.04
8.3.20.0000.00820.16
8.3.10.0080.00020.36
8.3.00.0050.00319.25
8.2.180.0070.01116.50
8.2.170.0150.00022.96
8.2.160.0140.00020.52
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0060.00326.16
8.2.120.0050.00222.23
8.2.110.0030.00620.47
8.2.100.0070.00318.03
8.2.90.0080.00318.95
8.2.80.0030.00617.97
8.2.70.0000.00817.63
8.2.60.0000.00818.00
8.2.50.0000.00818.07
8.2.40.0000.00818.22
8.2.30.0070.00019.32
8.2.20.0030.00517.75
8.2.10.0040.00417.98
8.2.00.0000.01017.75
8.1.280.0100.00325.92
8.1.270.0080.00022.05
8.1.260.0000.00726.35
8.1.250.0000.00728.09
8.1.240.0000.01023.96
8.1.230.0100.00019.04
8.1.220.0000.00817.74
8.1.210.0080.00018.77
8.1.200.0060.00617.13
8.1.190.0000.00817.35
8.1.180.0030.00518.10
8.1.170.0070.00418.65
8.1.160.0000.00722.00
8.1.150.0060.00318.96
8.1.140.0000.00717.45
8.1.130.0050.00317.73
8.1.120.0000.00717.36
8.1.110.0060.00317.34
8.1.100.0050.00317.48
8.1.90.0100.00017.33
8.1.80.0040.00417.54
8.1.70.0000.00817.43
8.1.60.0030.00517.67
8.1.50.0000.00817.48
8.1.40.0000.00717.47
8.1.30.0000.00817.53
8.1.20.0040.00417.63
8.1.10.0000.00817.55
8.1.00.0100.00017.58
8.0.300.0000.00718.77
8.0.290.0000.00716.75
8.0.280.0070.00018.30
8.0.270.0070.00017.21
8.0.260.0070.00017.16
8.0.250.0000.00716.88
8.0.240.0060.00016.95
8.0.230.0000.00816.87
8.0.220.0000.00716.92
8.0.210.0030.00316.90
8.0.200.0040.00416.89
8.0.190.0080.00016.94
8.0.180.0070.00016.90
8.0.170.0050.00316.85
8.0.160.0070.00016.86
8.0.150.0040.00416.91
8.0.140.0000.00716.83
8.0.130.0030.00313.29
8.0.120.0080.00016.90
8.0.110.0000.00716.88
8.0.100.0040.00416.96
8.0.90.0000.00716.92
8.0.80.0040.01316.94
8.0.70.0000.00716.91
8.0.60.0030.00616.72
8.0.50.0000.00716.70
8.0.30.0100.00817.15
8.0.20.0120.00617.40
8.0.10.0040.00416.78
8.0.00.0080.01116.81
7.4.330.0030.00315.13
7.4.320.0060.00016.58
7.4.300.0000.00616.49
7.4.290.0070.00016.43
7.4.280.0000.00716.58
7.4.270.0050.00216.48
7.4.260.0040.00416.58
7.4.250.0000.00716.39
7.4.240.0030.00416.59
7.4.230.0000.00716.63
7.4.220.0090.00916.59
7.4.210.0030.01016.38
7.4.200.0040.00416.68
7.4.160.0030.01416.55
7.4.150.0130.01317.40
7.4.140.0100.00717.86
7.4.130.0100.00616.43
7.4.120.0130.00516.45
7.4.110.0080.00816.56
7.4.100.0090.00916.47
7.4.90.0140.00616.55
7.4.80.0100.00919.37
7.4.70.0190.00316.58
7.4.60.0090.01216.40
7.4.50.0040.00016.49
7.4.40.0090.01316.25
7.4.30.0150.00916.39
7.4.00.0070.01115.07
7.3.330.0030.00213.13
7.3.320.0000.00613.17
7.3.310.0070.00016.23
7.3.300.0030.00316.15
7.3.290.0100.00516.37
7.3.280.0100.00516.34
7.3.270.0060.01817.40
7.3.260.0070.01116.29
7.3.250.0120.00716.48
7.3.240.0140.00316.36
7.3.230.0080.00816.39
7.3.210.0070.01316.37
7.3.200.0070.01019.39
7.3.190.0160.00616.47
7.3.180.0070.01116.31
7.3.170.0130.00316.52
7.3.160.0030.01316.66
7.3.00.0000.01716.57
7.2.330.0160.00716.74
7.2.320.0070.01316.36
7.2.310.0130.00616.39
7.2.300.0090.00916.66
7.2.290.0090.00616.57
7.2.130.0040.00716.93
7.2.120.0000.01216.87
7.2.110.0070.00716.87
7.2.100.0030.00616.79
7.2.90.0080.00416.89
7.2.80.0030.00916.71
7.2.70.0060.00617.02
7.2.60.0080.00617.12
7.2.50.0120.00016.63
7.2.40.0030.01016.92
7.2.30.0040.01116.75
7.2.20.0030.00916.65
7.2.10.0040.01116.82
7.2.00.0000.01118.03
7.1.250.0040.00815.45
7.1.240.0110.00015.70
7.1.230.0040.00815.75
7.1.220.0070.00315.79
7.1.210.0040.00815.52
7.1.200.0060.00915.54
7.1.190.0030.00615.86
7.1.180.0030.00615.80
7.1.170.0030.01015.58
7.1.160.0080.00815.81
7.1.150.0140.00015.91
7.1.140.0070.00315.81
7.1.130.0030.00715.88
7.1.120.0080.00315.78
7.1.110.0000.00915.96
7.1.100.0050.00617.04
7.1.90.0080.00415.84
7.1.80.0060.00915.88
7.1.70.0010.00716.51
7.1.60.0100.00617.55
7.1.50.0050.00816.21
7.1.40.0060.00615.93
7.1.30.0000.01115.83
7.1.20.0000.01215.91
7.1.10.0000.00915.64
7.1.00.0050.04019.00
7.0.330.0090.00315.43
7.0.320.0000.01115.22
7.0.310.0080.00415.08
7.0.300.0070.00415.30
7.0.290.0030.00915.26
7.0.280.0060.00615.38
7.0.270.0030.00715.29
7.0.260.0000.00915.33
7.0.250.0060.00615.15
7.0.240.0030.00715.31
7.0.230.0060.00915.29
7.0.220.0000.01015.47
7.0.210.0070.00315.39
7.0.200.0070.00215.87
7.0.190.0100.00315.34
7.0.180.0060.00615.40
7.0.170.0060.00315.41
7.0.160.0040.00815.10
7.0.150.0030.00715.13
7.0.140.0050.03518.59
7.0.130.0090.00315.43
7.0.120.0080.00415.11
7.0.110.0030.01015.15
7.0.100.0030.03317.61
7.0.90.0070.04217.52
7.0.80.0090.04217.61
7.0.70.0020.04017.58
7.0.60.0070.04417.72
7.0.50.0360.03817.77
7.0.40.0100.03716.64
7.0.30.0060.04216.63
7.0.20.0030.04716.67
7.0.10.0080.03416.61
7.0.00.0080.04116.71
5.6.380.0060.00614.45
5.6.370.0060.00614.25
5.6.360.0000.01014.34
5.6.350.0030.00614.16
5.6.340.0000.01114.52
5.6.330.0080.00314.26
5.6.320.0030.00614.53
5.6.310.0040.00814.21
5.6.300.0030.00614.21
5.6.290.0040.00814.47
5.6.280.0020.04317.67
5.6.270.0030.00714.41
5.6.260.0030.00614.24
5.6.250.0060.03917.45
5.6.240.0120.03717.49
5.6.230.0100.04317.43
5.6.220.0050.03517.41
5.6.210.0120.04017.45
5.6.200.0080.04217.69
5.6.190.0030.04217.59
5.6.180.0030.04717.52
5.6.170.0100.04017.60
5.6.160.0100.03817.67
5.6.150.0080.04017.74
5.6.140.0120.03117.77
5.6.130.0070.04517.55
5.6.120.0120.04017.62
5.6.110.0120.04217.77
5.6.100.0100.03917.58
5.6.90.0080.04317.58
5.6.80.0030.03817.48
5.6.70.0070.04217.44
5.6.60.0050.04217.44
5.6.50.0080.04417.44
5.6.40.0070.04317.14
5.6.30.0050.03117.39
5.6.20.0060.04017.37
5.6.10.0170.02717.37
5.6.00.0050.03517.32
5.5.380.0070.03615.77
5.5.370.0050.04115.72
5.5.360.0050.02515.89
5.5.350.0140.02615.70
5.5.340.0080.03915.86
5.5.330.0080.02816.02
5.5.320.0100.03715.93
5.5.310.0090.03716.04
5.5.300.0050.04315.92
5.5.290.0080.04415.98
5.5.280.0050.04415.89
5.5.270.0040.04715.87
5.5.260.0050.02416.10
5.5.250.0060.04115.74
5.5.240.0100.03615.84
5.5.230.0000.03315.77
5.5.220.0050.04215.63
5.5.210.0050.04115.74
5.5.200.0070.03915.66
5.5.190.0040.02815.63
5.5.180.0020.04115.75
5.5.170.0070.00011.33
5.5.160.0020.04515.52
5.5.150.0080.03715.55
5.5.140.0080.03515.62
5.5.130.0020.03015.57
5.5.120.0080.03315.49
5.5.110.0030.02315.56
5.5.100.0100.04215.73
5.5.90.0080.04015.66
5.5.80.0090.03515.45
5.5.70.0050.04615.58
5.5.60.0050.03915.67
5.5.50.0050.03615.62
5.5.40.0030.02615.59
5.5.30.0050.03815.59
5.5.20.0050.04315.53
5.5.10.0050.04015.60
5.5.00.0100.03515.58
5.4.450.0120.03515.22
5.4.440.0010.04515.41
5.4.430.0030.04515.25
5.4.420.0070.03715.29
5.4.410.0060.03615.07
5.4.400.0030.04015.15
5.4.390.0090.02315.06
5.4.380.0030.03715.07
5.4.370.0090.03514.96
5.4.360.0080.03814.88
5.4.350.0030.04315.09
5.4.340.0050.04515.05
5.4.330.0000.00711.09
5.4.320.0050.04015.13
5.4.310.0030.03214.98
5.4.300.0080.03715.12
5.4.290.0080.03614.87
5.4.280.0030.03914.96
5.4.270.0070.02714.95
5.4.260.0080.03315.00
5.4.250.0030.03914.95
5.4.240.0030.04014.92
5.4.230.0010.04015.13
5.4.220.0080.02615.00
5.4.210.0070.02414.93
5.4.200.0070.03314.96
5.4.190.0100.03314.97
5.4.180.0030.02314.91
5.4.170.0090.03914.92
5.4.160.0060.02815.07
5.4.150.0110.03215.06
5.4.140.0130.03213.75
5.4.130.0060.03313.82
5.4.120.0080.03813.79
5.4.110.0050.03813.84
5.4.100.0020.04013.79
5.4.90.0100.03513.87
5.4.80.0050.02313.83
5.4.70.0090.03513.77
5.4.60.0070.03713.71
5.4.50.0110.03213.55
5.4.40.0030.03613.82
5.4.30.0100.03413.78
5.4.20.0030.03813.57
5.4.10.0020.02213.62
5.4.00.0030.02513.50
5.3.290.0050.04012.78
5.3.280.0030.03912.67
5.3.270.0020.03012.62
5.3.260.0050.04212.66
5.3.250.0090.03812.71
5.3.240.0060.03612.44
5.3.230.0100.03512.54
5.3.220.0080.03112.51
5.3.210.0050.03712.57
5.3.200.0050.03412.58
5.3.190.0020.04312.57
5.3.180.0030.02212.56
5.3.170.0050.04212.58
5.3.160.0070.03612.68
5.3.150.0050.04012.58
5.3.140.0020.02712.57
5.3.130.0050.04012.49
5.3.120.0050.04012.63
5.3.110.0050.02912.43
5.3.100.0060.03312.28
5.3.90.0050.02912.26
5.3.80.0040.02912.29
5.3.70.0080.03312.33
5.3.60.0080.03512.25
5.3.50.0080.03512.13
5.3.40.0050.03912.14
5.3.30.0020.04012.16
5.3.20.0020.02712.21
5.3.10.0020.04011.97
5.3.00.0050.04112.04
5.2.170.0030.03111.39
5.2.160.0050.03311.39
5.2.150.0030.03011.39
5.2.140.0070.03211.39
5.2.130.0050.03011.39
5.2.120.0080.03011.39
5.2.110.0030.03511.39
5.2.100.0040.03111.39
5.2.90.0020.03211.39
5.2.80.0030.03411.39
5.2.70.0040.03611.39
5.2.60.0060.03111.39
5.2.50.0030.02911.39
5.2.40.0030.03011.39
5.2.30.0000.03711.39
5.2.20.0020.02211.39
5.2.10.0020.02811.39
5.2.00.0010.03511.39
5.1.60.0040.02411.39
5.1.50.0030.02111.39
5.1.40.0030.02611.39
5.1.30.0020.03311.39
5.1.20.0070.02611.39
5.1.10.0050.02311.39
5.1.00.0030.03011.39
5.0.50.0070.01511.39
5.0.40.0020.02411.39
5.0.30.0020.03511.39
5.0.20.0050.02311.39
5.0.10.0020.02211.39
5.0.00.0030.01811.39
4.4.90.0020.01011.39
4.4.80.0010.01911.39
4.4.70.0040.01811.39
4.4.60.0030.01711.39
4.4.50.0020.01711.39
4.4.40.0000.02911.39
4.4.30.0030.02011.39
4.4.20.0020.01711.39
4.4.10.0030.01511.39
4.4.00.0050.02511.39
4.3.110.0020.02211.39
4.3.100.0020.01811.39
4.3.90.0020.01911.39
4.3.80.0020.02311.39
4.3.70.0010.01611.39
4.3.60.0020.01811.39
4.3.50.0030.01511.39
4.3.40.0060.02311.39
4.3.30.0020.01811.39
4.3.20.0050.01311.39
4.3.10.0050.01511.39
4.3.00.0030.01011.39

preferences:
37.34 ms | 401 KiB | 5 Q