3v4l.org

run code in 300+ PHP versions simultaneously
<?php class aaa { private static $tpl = array( 'sb_build_id'=>'', 'sb_build_name'=>'' ); public static $xxx = 'aaa'; function yyy(){ echo self::$xxx; } function genprops(){ foreach ($this->dbe as $k => $v) { echo $v; $this->$k = $v; } $this->a = "a"; print_r(get_class_vars(__CLASS__)); } } class ccc extends aaa { public $zzz=''; } class bbb extends ccc { /** * */ function tests(){ parent::$xxx = "bbb"; //echo $this->xxx; echo parent::$xxx; } } $aaa_o = new aaa(); $bbb_o = new bbb(); $bbb_o->yyy(); $bbb_o->tests(); #$bbb_o->genprops(); ?>

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.43
8.3.50.0090.00922.05
8.3.40.0070.00718.67
8.3.30.0110.00419.04
8.3.20.0000.00820.17
8.3.10.0050.00221.97
8.3.00.0070.00019.07
8.2.180.0110.00618.29
8.2.170.0040.01122.96
8.2.160.0030.01020.52
8.2.150.0050.00324.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0000.00820.95
8.2.110.0030.00719.37
8.2.100.0000.01117.89
8.2.90.0040.00418.22
8.2.80.0030.00518.04
8.2.70.0000.00817.80
8.2.60.0040.00418.16
8.2.50.0050.00518.10
8.2.40.0040.00421.20
8.2.30.0000.00819.13
8.2.20.0000.00817.57
8.2.10.0000.00717.93
8.2.00.0000.00717.61
8.1.280.0130.00725.92
8.1.270.0080.00018.91
8.1.260.0020.00526.35
8.1.250.0070.00028.09
8.1.240.0140.00017.51
8.1.230.0060.00622.63
8.1.220.0040.00417.79
8.1.210.0030.00618.86
8.1.200.0060.00317.35
8.1.190.0040.00417.23
8.1.180.0040.00418.10
8.1.170.0000.00818.31
8.1.160.0030.00718.96
8.1.150.0070.00018.89
8.1.140.0000.00817.35
8.1.130.0000.00717.81
8.1.120.0050.00317.30
8.1.110.0000.00717.40
8.1.100.0070.00017.41
8.1.90.0040.00417.36
8.1.80.0040.00417.37
8.1.70.0000.00717.39
8.1.60.0060.00317.62
8.1.50.0000.00817.42
8.1.40.0050.00317.55
8.1.30.0050.00317.49
8.1.20.0070.00017.54
8.1.10.0000.00717.53
8.1.00.0050.00217.40
8.0.300.0040.00419.66
8.0.290.0040.00416.58
8.0.280.0000.00718.45
8.0.270.0080.00017.27
8.0.260.0000.00617.26
8.0.250.0030.00616.89
8.0.240.0040.00416.82
8.0.230.0000.00716.96
8.0.220.0030.00316.79
8.0.210.0030.00316.86
8.0.200.0030.00316.85
8.0.190.0080.00016.79
8.0.180.0070.00016.88
8.0.170.0040.00416.90
8.0.160.0080.00016.87
8.0.150.0040.00416.87
8.0.140.0050.00316.83
8.0.130.0020.00513.25
8.0.120.0080.00316.83
8.0.110.0000.00716.66
8.0.100.0000.00716.70
8.0.90.0040.00416.78
8.0.80.0040.01116.82
8.0.70.0000.00816.89
8.0.60.0080.00016.79
8.0.50.0040.00416.66
8.0.30.0090.01117.31
8.0.20.0100.02017.40
8.0.10.0030.00516.84
8.0.00.0080.01116.72
7.4.330.0000.00615.03
7.4.320.0030.00316.44
7.4.300.0060.00016.50
7.4.290.0040.00416.52
7.4.280.0050.00316.59
7.4.270.0050.00316.55
7.4.260.0000.00716.60
7.4.250.0080.00016.55
7.4.240.0050.00316.54
7.4.230.0000.00716.58
7.4.220.0060.01416.54
7.4.210.0120.00316.67
7.4.200.0000.00716.48
7.4.160.0080.00816.60
7.4.150.0130.00817.40
7.4.140.0080.01117.86
7.4.130.0070.01116.51
7.4.120.0120.00516.46
7.4.110.0170.00416.57
7.4.100.0100.00716.64
7.4.90.0100.00716.39
7.4.80.0060.01019.39
7.4.70.0100.00716.44
7.4.60.0040.01216.58
7.4.50.0060.00316.41
7.4.40.0100.00716.40
7.4.30.0160.00616.45
7.4.00.0030.01014.68
7.3.330.0040.00413.25
7.3.320.0030.00313.38
7.3.310.0000.00716.33
7.3.300.0000.00616.24
7.3.290.0080.00716.28
7.3.280.0100.00916.27
7.3.270.0070.01417.40
7.3.260.0130.01016.51
7.3.250.0150.00616.47
7.3.240.0180.00616.57
7.3.230.0150.00316.39
7.3.210.0090.00916.34
7.3.200.0130.01019.39
7.3.190.0120.00916.54
7.3.180.0100.00616.52
7.3.170.0160.00516.47
7.3.160.0030.01416.35
7.2.330.0100.00716.71
7.2.320.0130.00316.62
7.2.310.0100.01316.49
7.2.300.0110.00616.62
7.2.290.0130.01116.48
7.2.60.0150.00516.37
7.2.00.0060.00619.06
7.1.200.0040.00715.44
7.1.100.0110.00317.97
7.1.70.0000.00816.89
7.1.60.0090.00619.22
7.1.50.0100.00734.66
7.1.00.0100.07022.51
7.0.200.0000.00716.73
7.0.140.0000.07721.92
7.0.60.0170.08019.93
7.0.50.0100.07717.84
7.0.40.0030.04720.27
7.0.30.0230.04020.06
7.0.20.0200.07720.26
7.0.10.0100.08720.13
7.0.00.0000.09320.08
5.6.280.0100.06721.00
5.6.210.0100.06720.74
5.6.200.0070.06318.16
5.6.190.0070.04720.63
5.6.180.0300.04320.39
5.6.170.0230.05720.55
5.6.160.0130.08020.52
5.6.150.0070.08318.27
5.6.140.0030.04718.21
5.6.130.0070.04018.24
5.6.120.0000.08321.00
5.6.110.0100.08321.01
5.6.100.0100.07020.98
5.6.90.0030.06720.97
5.6.80.0070.08320.44
5.5.350.0230.08320.41
5.5.340.0100.07317.98
5.5.330.0100.07720.13
5.5.320.0130.04720.23
5.5.310.0230.07720.36
5.5.300.0070.04017.96
5.5.290.0100.08317.98
5.5.280.0000.09320.91
5.5.270.0070.05020.77
5.5.260.0030.05720.77
5.5.250.0070.06020.59
5.5.240.0030.07320.17
5.4.450.0570.06019.63
5.4.440.0730.06319.58
5.4.430.0830.06019.53
5.4.420.0070.05719.54
5.4.410.0570.06319.27
5.4.400.0430.05319.22
5.4.390.0470.06319.11
5.4.380.0230.08018.63
5.4.370.0300.05018.64
5.4.360.0200.08018.57
5.4.350.0270.06318.63
5.4.340.0230.05718.79
5.4.320.0370.05318.75
5.4.310.0270.06018.70
5.4.300.0230.06318.63
5.4.290.0370.04718.75
5.4.280.0430.06318.53
5.4.270.0300.05318.57
5.4.260.0300.06018.58
5.4.250.0570.05718.48
5.4.240.0230.05718.48
5.4.230.0230.05018.58
5.4.220.0270.04718.82
5.4.210.0230.05718.49
5.4.200.0330.06316.61
5.4.190.0230.05718.49
5.4.180.0330.04318.69
5.4.170.0270.07318.61
5.4.160.0300.07018.73
5.4.150.0230.07018.70
5.4.140.0330.06316.36
5.4.130.0400.05316.18
5.4.120.0230.06016.22
5.4.110.0270.06016.21
5.4.100.0370.06316.21
5.4.90.0270.04716.33
5.4.80.0270.05716.27
5.4.70.0270.07016.28
5.4.60.0230.05016.43
5.4.50.0330.04316.39
5.4.40.0200.05016.29
5.4.30.0270.05716.18
5.4.20.0230.07316.18
5.4.10.0300.06016.30
5.4.00.0400.05715.89
5.3.290.0300.07014.70
5.3.280.0200.06014.65
5.3.270.0330.05314.73
5.3.260.0330.05014.64
5.3.250.0270.05014.74
5.3.240.0330.04014.83
5.3.230.0270.05014.66
5.3.220.0400.03314.58
5.3.210.0170.06314.58
5.3.200.0200.05714.57
5.3.190.0230.06014.68
5.3.180.0230.07014.70
5.3.170.0300.04314.79
5.3.160.0300.05014.77
5.3.150.0200.05714.57
5.3.140.0270.05014.60
5.3.130.0270.05714.57
5.3.120.0130.06714.66
5.3.110.0270.06314.74
5.3.100.0070.06714.05
5.3.90.0230.07014.21
5.3.80.0230.07314.23
5.3.70.0230.07014.01
5.3.60.0270.07014.00
5.3.50.0270.04714.18
5.3.40.0200.05014.08
5.3.30.0300.04013.99
5.3.20.0300.04013.91
5.3.10.0270.05313.79
5.3.00.0300.05313.68
5.2.170.0200.04311.28
5.2.160.0200.04311.14
5.2.150.0230.03311.18
5.2.140.0130.04711.27
5.2.130.0170.04711.13
5.2.120.0200.03711.14
5.2.110.0200.03711.17
5.2.100.0200.04311.16
5.2.90.0070.05011.23
5.2.80.0170.04711.13
5.2.70.0300.04311.13
5.2.60.0230.04311.04
5.2.50.0330.05011.09
5.2.40.0130.05711.11
5.2.30.0170.04311.19
5.2.20.0100.04310.99
5.2.10.0100.04010.97
5.2.00.0130.04710.71
5.1.60.0200.04310.00
5.1.50.0170.03310.14
5.1.40.0270.0379.97
5.1.30.0170.03710.52
5.1.20.0230.03310.36
5.1.10.0100.04310.27
5.1.00.0130.04310.30
5.0.50.0100.0378.76
5.0.40.0130.0238.43
5.0.30.0170.0378.41
5.0.20.0000.0338.39
5.0.10.0070.0308.22
5.0.00.0100.0538.21
4.4.90.0070.0275.90
4.4.80.0030.0375.91
4.4.70.0030.0335.97
4.4.60.0100.0306.00
4.4.50.0170.0275.96
4.4.40.0130.0335.88
4.4.30.0130.0276.01
4.4.20.0100.0305.93
4.4.10.0130.0275.95
4.4.00.0100.0435.95
4.3.110.0130.0235.84
4.3.100.0100.0205.81
4.3.90.0100.0305.82
4.3.80.0170.0405.91
4.3.70.0030.0275.78
4.3.60.0170.0135.80
4.3.50.0070.0235.78
4.3.40.0130.0305.75
4.3.30.0000.0305.04
4.3.20.0070.0235.04
4.3.10.0130.0235.04
4.3.00.0000.0237.60

preferences:
60.31 ms | 401 KiB | 5 Q